5
I am using on my site 3 columns(sections) each with 33.33% width and with margin-left and right from 10px to 3. Only the last column is falling down. Because they are width in %, they should not fit the size of my container instead of falling?
<main>
<article>
<section class="bg-col col-sm-4">
<h2>Empresa</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<div class="more"><a href="empresa.php">Saiba Mais</a></div>
</section>
<section class="bg-col col-sm-4">
<h2>Serviços</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<div class="more"><a href="servicos.php">Saiba Mais</a></div>
</section>
<section class="bg-col col-sm-4">
<h2>Contatos</h2>
<p>Tel: (xx) xxxx-xxxx</p>
<p>E-mail: [email protected]</p>
<div class="more"><a href="contatos.php">Saiba Mais</a></div>
</section>
</article>
</main>
Please include HTML in the question. Anyway, it is the expected behavior: 99% width plus margins exceed available space.
– bfavaretto
@bfavaretto how could I solve? html was included.
– Lucas
@Lucas If my answer meets your need, please mark as accepted
– Vinicius Colares