Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/09/2008, 14:40
reversible
 
Fecha de Ingreso: julio-2008
Mensajes: 35
Antigüedad: 15 años, 9 meses
Puntos: 1
Respuesta: Los float me eliminan el fondo de un div

suele pasar que el elemeto contenedor no aparece o se contrae, parece ser que aqui es cuando entra el hack -clearfix-

.clearfix:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}

.clearfix {
display: inline-block;
}

html[xmlns] .clearfix {
display: block;
}

* html .clearfix {
height: 1%;
}


define al div wraper debes ponerle el microdformato class="clearfix", espero que te funcione