codice:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Documento senza titolo</title>
<style type="text/css">
body {
margin: 0px;
padding: 0;
width: 980;
height: auto;
}
.img {
float: left;
width: 300px;
height: 300px;
margin: 26px;
}
</style>
</head>
<body>
<div id="contenitore">
<div class="img">
<img src="img1.jpg" width="300" height="300" alt=""/> </div>
</div>
<div class="img">
<img src="img2.jpg" width="300" height="300" alt=""/> </div>
</div>
<div class="img">
<img src="img3.jpg" width="300" height="300" alt=""/> </div>
</div>
</body>
</html>
ATTENZIONE! La somma della larghezza dei div con l'immagine + il margin + un eventuale padding, Non deve superare la larfgezza del body nemmeno di un pixel