Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/10/2012, 10:43
Avatar de ArturoGallegos
ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 16 años, 1 mes
Puntos: 1146
Respuesta: No me aclaro con los div

ok ya veo lo que tu quieres es que tu diseño siempre ocupe el 100% de alto, en ese caso deberias tener otra estructura

prueba con este ejemplo:
Código CSS:
Ver original
  1. html,body{margin:0;padding:0;height:100%;}
  2. #site{min-height:100%;}
  3. #header{background:#333;font:italic 700 15px/50px georgia,tahoma,arial;color:#fff;text-align:center;}
  4. #content{padding-bottom:33px;font:13px/1.5 arial,verdana,tahoma;}
  5. #footer{background:#333;font:italic 700 11px/33px 'courier new',tahoma,arial;color:#fff;text-align:center;margin-top:-33px;}
Código HTML:
Ver original
  1. <div id="site">
  2.     <div id="header">Cabecera de nuestro sitio</div>
  3.     <div id="content">
  4. <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
  5.     </div>
  6. </div>
  7. <div id="footer">Contenido del pie de pagina</div>