You need to arrange things in columns to get what you want. Here's a fiddle showing that. Replace the colored divs with imgs. Here's the code:
Code:
.col {width:200px;float:left;}
.red {background-color:red; width:200px; height:155px; }
.green {background-color:green; width:200px; height:105px; }
.blue {background-color:blue; width:200px; height:135px; }
.yellow {background-color:yellow; width:200px; height:75px; }
HTML Code:
<div class="col">
<div class="red"></div>
<div class="green"></div>
<div class="blue"></div>
</div>
<div class="col">
<div class="blue"></div>
<div class="yellow"></div>
<div class="red"></div>
</div>
You don't have to float the imgs or anything (you do have to float the columns). Just make sure the width of the imgs is the same as the columns and they'll stack right in nicely.
Bookmarks