HTML CSS two columns

Posted by Marki on Stack Overflow See other posts from Stack Overflow or by Marki
Published on 2010-05-20T06:07:50Z Indexed on 2010/05/20 6:10 UTC
Read the original article Hit count: 390

Filed under:
|
|

If my HTML says something along the following

<div class="container">
 <div class="element">
 </div>
 <div class="element">
 </div>
 [...]
 <div class="element">
 </div>
</div>

is it then possible to align those elements as if they were in a two-column table? I.e. with 7 elements there would be 4 rows, with the last row only having one element.

(The elements themselves have NO special classes or ids like right,left,etc.)

© Stack Overflow or respective owner

Related posts about html

Related posts about css