Hi,
Been trying to move away from tables recently, and it's going pretty well, except there's a couple of things I can't figure out how to do...
For example, I'm not sure how to display a list of items in centered equidistant boxes, as you might see on a product list.
Here's what I'm trying right now:
Notice how it works on the first grouping where everything is the same height, but then gets ruined by one taller box in the second group? 
Any secret way of doing this so it doesnt happen?
Thanks
Been trying to move away from tables recently, and it's going pretty well, except there's a couple of things I can't figure out how to do...
For example, I'm not sure how to display a list of items in centered equidistant boxes, as you might see on a product list.
Here's what I'm trying right now:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test</title>
<style type="text/css">
body {
background: #eee;
}
#wrap {
background: #fff;
width: 600px;
border: 1px solid #ddd;
padding: 10px;
margin: 2em auto;
}
.item {
background: red;
color: #fff;
width: 170px;
float: left;
margin-right: 10px;
margin-bottom: 10px;
padding: 10px;
}
</style>
</head>
<body>
<div id="wrap">
<div class="item">
<h3>Normal Item</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="item">
<h3>Normal Item</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="item">
<h3>Normal Item</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="item">
<h3>Normal Item</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="item">
<h3>Normal Item</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="item">
<h3>Normal Item</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<br style="clear: both" />
<hr />
<div class="item">
<h3>Normal Item</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="item">
<h3>Item With a Super Extra Long Title Over Multiple Lines</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="item">
<h3>Normal Item</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="item">
<h3>Normal Item</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="item">
<h3>Normal Item</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="item">
<h3>Normal Item</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<br style="clear: both" />
</div>
</body>
</html>
Any secret way of doing this so it doesnt happen?
Thanks