Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/09/2012, 12:11
Avatar de ArturoGallegos
ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 16 años, 9 meses
Puntos: 1146
Respuesta: Posicionar footer en ela parte inferior de la pantalla

cuando necesito colocar el pie de pagina hasta abajo cuando no hay suficiente contenido y que baje aun mas cuando el contenido supere el tamaño de pantalla, suelo utilizar esta técnica... revisa el código, pruebalo y adaptalo a tus necesidades.

Código CSS:
Ver original
  1. *{margin:0;padding:0;}/* reset rapido - no recomendado para un sitio en vivo */
  2. p{margin-bottom:10px;}/* reset rapido */
  3. html,body{margin:0;padding:0;height:100%;font:13px/1.5 arial,verdana,tahoma;}
  4. #site{min-height:100%;}
  5. #content{width:900px;margin:auto;padding-bottom:33px;}
  6. #footer{background:#000;height:33px;margin-top:-33px;font:italic 700 11px/33px tahoma,arial,verdana;color:#fff;text-align:center;text-transform:uppercase;}

Código HTML:
Ver original
  1. <div id="site">
  2.     <div id="content">
  3. <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><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.<br /><br />hola mundo</p>
  4.     </div>
  5. </div>
  6. <div id="footer">pie de pagina</div>

Nota: no olvides declarar un doctype valido