7
I’m having a problem structuring a layout with some divs
one side of the other and when no more box fit they pass down. And the container main need to increase according to how many box you have. More or less like this:
But I do not know why it is not working, the main container does not increase in size. My code:
HTML
<div id="container">
<div class="caixas"></div>
<div class="caixas"></div>
<div class="caixas"></div>
<div class="caixas"></div>
<div class="caixas"></div>
<div class="caixas"></div>
</div>
CSS
#container{
width:610px;
height:AUTO;
border:1px #FF0000 solid;
}
.caixas{
width:200px;
height:200px;
border:1px #00FF00 solid;
float:left;
}
I added an example to the answer to make it more understandable.
– Diego Lopes Lima
Thank you very much worked out well.
– Raimundo
Imagine , we are here to help us ^^
– Diego Lopes Lima