I want to put several divs into a container div, and line them up to make the container look like it has columns inside.
<div>
<div id="col_1"></div>
<div id="col_2"></div>
</div>
I can choose those divs to be inline-block
or make them float:left
with specific width and append a empty div to the last which the css style is clear:both
.
Both seem fine, but which way should I do it?