Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/06/2014, 20:33
jeancarsas
 
Fecha de Ingreso: junio-2014
Mensajes: 5
Antigüedad: 9 años, 10 meses
Puntos: 0
Respuesta: Footer queda en el medio

Creo que esto es lo que quieres hacer

Código CSS:
Ver original
  1. <style>
  2. *{
  3.     font-family:Arial, Helvetica, sans-serif;
  4.     font-size:20px;
  5.     margin:0;
  6.     padding:0px;}
  7.  
  8. #content{
  9.     width:100%s;
  10.     height:auto;
  11.     position:relative;
  12.     overflow:hidden;
  13. }
  14.  
  15.  
  16.  
  17. #main{
  18.     width:70%;
  19.     min-height:300px;
  20.     position:relative;
  21.     float:left;
  22.     background-color:red;
  23. }
  24.  
  25.  
  26.  
  27.  
  28. #sidebar{
  29.     width:30%;
  30.     min-height:300px;
  31.     position:relative;
  32.     float:left;
  33.     background-color:blue;
  34.  
  35. }
  36.  
  37.  
  38. #footer{
  39.     width:100%;
  40.     min-height:175px;
  41.     position:relative;
  42.     clear:both;
  43.     background-color:yellow;
  44. }
  45. </style>

Código HTML:
Ver original
  1. <div id="content">
  2.                  <div id="sidebar">
  3.                      Sidebar
  4.                   </div>
  5.  
  6.  
  7.                  <div id="main">
  8.                     Contenido Principal
  9.                  </div>
  10. </div>
  11.  
  12. <div id="footer">
  13. Footer
  14. </div>