HTML
Código :
<div class="content"> <div class="capa"> <img src="1.jpg" height="200"> </div> <div class="capa"> <img src="2.jpg" height="120"> </div> <div class="capa"> <img src="3.jpg" height="300"> </div> <div class="capa"> <img src="4.jpg" height="180"> </div> <div class="capa"> <img src="1.jpg" height="100"> </div> <div class="capa"> <img src="2.jpg" height="200"> </div> <div class="capa "> <img src="3.jpg" height="240"> </div> <div class="capa"> <img src="4.jpg"> </div> </div>
CSS
Código :
.content { width: 950px; overflow: auto; margin: auto; } .capa { float: left; width: 200px; height: auto; background: #ddd; padding: 10px; margin: 8px; } .capa img { width: 100%; }