Ver Mensaje Individual
  #5 (permalink)  
Antiguo 07/06/2013, 10:52
piojoso
 
Fecha de Ingreso: enero-2006
Mensajes: 199
Antigüedad: 18 años, 2 meses
Puntos: 5
Respuesta: footer se superpone con div con float

codigo HTML

Código HTML:
Ver original
  1. <div id="subte1" style="background-color: #151515;">
  2. ....
  3. <br class="clearfloat" />
  4. </div>
  5.  
  6. <div id="subte2">
  7. ......
  8. </div>
  9.  
  10. <div align="center">footer</div>


CSS

Código CSS:
Ver original
  1. .clearfloat {
  2.     clear:both;
  3.     height:0;
  4.     font-size: 1px;
  5.     line-height: 0px;
  6.     width:1px;
  7. }
  8. #subte1{
  9.    margin-right: 8px;
  10.    width: 655px;
  11.    float: right;
  12. }
  13. #subte2{
  14.    margin-left: 8px;
  15.    width: 310px;
  16.    height:auto;
  17. }