0
I own a section
on my website that on the desktop presents the expected behavior, a row
divided into 3, using col-md-4
, on the desktop the behavior is normal, on mobile tried to use col-xs-4
to be divided correctly, but the result was not as expected.
It is to have that same behavior in mobile, but it is breaking one below the other.
HTML
<section class="third-section">
<div class="container">
<div class="row">
<div class="col-md-4 col-xs-4 d-flex justify-content-start">
<h4>Entre em contato com a gente:</h4>
</div>
<div class="col-md-4 col-xs-4 phone">
<div class="d-flex align-items-center resd">
<p> 51 9999999</p>
</div>
<div class="d-flex align-items-center"><img src="img/iconwpp.png" alt="icone whatsapp">
<p>51 99999999</p>
</div>
<div class="d-flex align-items-center"><img src="img/iconwpp.png" alt="icone whatsapp">
<p>51 99999999</p>
</div>
</div>
<div class="col-md-4 col-xs-4 address">
<p>Rua XXXXX</p>
<p>xxxxxxxxxxxxx/RS</p>
<p>CEP 00000-000</p>
</div>
</div>
</div>
CSS
.third-section {
margin-top: 5%;
margin-bottom: 5%;
padding-left: 35%;
padding-right: 30%;
.phone {
img {
margin-right: 3px;
margin-bottom: 20px;
height: 20px;
}
.resd {
margin-left: 23px;
}
}