Forum Moderators: not2easy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> Page Title </title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<style type="text/css" media="screen">
#wrapper {
width: 76%;
background: #cfc;
overflow: hidden;
}
.preview {
float: left;
width: 50%;
border: 1px solid #000;
padding: 5px;
/* you don't want the above width, border and padding to add up to more than 100% of container so change the box model! */
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
}
</style>
<!--[if lt IE 8]>
<style type="text/css" media="screen">
.preview {
/* javascript expression calculates width by dividing the wrapper width by 2 then taking off the 2px for the borders and 10px for padding */
width: expression(wrapper.offsetWidth/2 - 12 + "px");
}
</style>
<![endif]-->
</head>
<body>
<div id="wrapper">
<div class="preview">1st image preview</div>
<div class="preview">2nd image preview</div>
<div class="preview">3rd image preview</div>
<div class="preview">4th image preview</div>
<div class="preview">5th image preview</div>
</div>
</body>
</html>