-1
I’m making a structure with bootstrap
, according to the "laws" of bootstrap
one should use col-xs-12 col-md-12
I’m making 2 main columns with columns inside, example:
the right column, has daughter columns with col-xs-12 col-md-6
, only that one has a size larger than the other, making it not be 2 columns in the same row, which may be going wrong?
<div class="container">
<div class="row">
<div class="col-md-2 borda">
<div class="col-xs-12 col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
Titulo
</div>
<div class="panel-body">
CONTEUDO
</div>
</div>
</div>
</div>
<div class="col-md-8 borda">
<div class="row">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
Titulo
</div>
<div class="panel-body">
<p>CONTEUDO</p>
<p>CONTEUDO</p>
<p>CONTEUDO</p>
<p>CONTEUDO</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
Titulo
</div>
<div class="panel-body">
<p>CONTEUDO</p>
<p>CONTEUDO</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
Titulo
</div>
<div class="panel-body">
Conteudo
</div>
</div>
</div>
</div>
</div>
</div>
Post the code here too, it is always recommended to post the code on the site, so that it is independent of other sites.
– user28595
The
Bootstrap
is just being responsive. If it doesn’t have space below another div, it simply aligns right. And follow what Diego said and post the code inside the SOPT.– Lucas Henrique
ready @Lucashenrique
– Furlan
I didn’t quite understand your problem.. You want the right column, which has other 3 Ivs, align the first 2 in the same row, that’s it?
– celsomtrindade
This @Celsomtrindade in each row 2 columns, no need to use the div
row
pq I will insert these Divs withjQuery
, ai needs to stay 2 columns per row– Furlan