Estoy intentando hacer que los elementos de una lista estén flotantes, pero cuando hago eso la lista se queda sin height.
Aqui está la lista:
Código HTML:
<ul class="sortable" id="menu1">
<li id="id_46">
<img src="../files/gallery_images/small_IMG_1643.jpg" width="135" height="135">
</li><li id="id_44">
<img src="../files/gallery_images/small_IMG_0463.JPG" width="135" height="135">
</li><li id="id_45">
<img src="../files/gallery_images/small_IMG_1577.jpg" width="135" height="135">
</li><li id="id_42">
<img src="../files/gallery_images/small_IMG_4489.jpg" width="135" height="135">
</li><li id="id_43">
<img src="../files/gallery_images/small_IMG_0163.jpg" width="135" height="135">
</li><li id="id_52">
<img src="../files/gallery_images/small_DPP_0129.JPG" width="135" height="135">
</li><li id="id_48">
<img src="../files/gallery_images/small_DPP_0012.JPG" width="135" height="135">
</li>
</ul>
Código:
.sortable {
list-style-type: none;
margin: 0;
margin-bottom:20px;
padding: 10px 30px;
clear:both;
background:red;
height:auto;
}
.sortable li {
margin: 0 5px 5px 5px;
padding: 1px;
border:1px dotted #0171C5;
height: 135px;
width:135px;
float:left;
cursor:move;
}
html>body .sortable li {
height: 135px;
}
Aquí abrí un fiddle para que lo prueben
http://jsfiddle.net/PpQmH/