My question is rather simple:
I have several divs as follows
And the css looks like this:Code:<div id="wrapper"> <div class="left">...</div> <div class="middle">...</div> <div class="right">...</div> <div class="left">...</div> <div class="middle">...</div> <div class="right">...</div> <div... </div>
Now, this gives me the divs in 3 nice columns, but the divs all have different heights, and the next row only starts after the longest div of the previous row ends. How can I make it, so that there are no irregular spaces between the divs of the same column?Code:#wrapper { width:910px; } .first, .middle, .last { width:300px; float:left; clear:none; } .first { margin-right: 5px; clear:both; } .middle { margin-right: 5px; }



Reply With Quote

Bookmarks