I'm having a problem structuring a layout with some divs
side by side and when it does not fit any more, they go down. And the main container needs to increase according to how many boxes you have. More or less like this:
ButIdonotknowwhyit'snotworking,themaincontainerdoesnotgrowinsize.Mycode:
HTML
<divid="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;
}