1
I have some lists that are fed through a query to the database, IE, the amount that will show is uncertain, but I limit show up to 5 records per category.
How are you:
One list is occupying the "space" of the other and then I want to break into "Rows", basically like this:
My code:
<div class="col-md-12 main-content">
<div class="row">
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="box">
<h3 class="box-title">Categoria</h3>
<ul class="box-list">
<li><a href="#">Lorem Ipsum</a></li>
</ul>
<a class="read-more" href="#">Ver Todos <i class="fa fa-arrow-right"></i></a>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="box">
<h3 class="box-title">Categoria</h3>
<ul class="box-list">
<li><a href="#">Lorem Ipsum</a></li>
<li><a href="#">Lorem Ipsum</a></li>
<li><a href="#">Lorem Ipsum</a></li>
<li><a href="#">Lorem Ipsum</a></li>
<li><a href="#">Lorem Ipsum</a></li>
</ul>
<a class="read-more" href="#">Ver Todos <i class="fa fa-arrow-right"></i></a>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="box">
<h3 class="box-title">Categoria</h3>
<ul class="box-list">
<li><a href="#">Lorem Ipsum</a></li>
</ul>
<a class="read-more" href="#">Ver Todos <i class="fa fa-arrow-right"></i></a>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="box">
<h3 class="box-title">Categoria</h3>
<ul class="box-list">
<li><a href="#">Lorem Ipsum</a></li>
<li><a href="#">Lorem Ipsum</a></li>
</ul>
<a class="read-more" href="http://192.168.31.50/faq/view/teste-de-envio-para-web">Ver Todos <i class="fa fa-arrow-right"></i></a>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="box">
<h3 class="box-title">Categoria</h3>
<ul class="box-list">
<li><a href="#">Lorem Ipsum</a></li>
</ul>
<a class="read-more" href="#">Ver Todos <i class="fa fa-arrow-right"></i></a>
</div>
</div>
</div>
How can I do that?
It worked, I forgot about that possibility, thank you!
– Piupz
@Piupz Quiet young we are here for this! And if you want the 5 lists in the same row just take the flex-wrap: wrap
– hugocsl
Thank you! Great solution. It can also be configured directly in the Row class in the styling file where it was implemented.
– Lucas Coelho
@Lucascoelho was worth young! You can do it this way yes, but there ALL . Row will look like this class, and can mess up your grid elsewhere, as this I preferred to create a class only with these properties, then you can use only on . Row you want! Remembering that here Boostrap is v3 does not have the flexbox classes of v4
– hugocsl