Tema: Fijar divs
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/09/2009, 13:32
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: Fijar divs

Cita:
Iniciado por matucasal Ver Mensaje
Al parecer viene complicada la mano, jeje
Pido a gritos jaja al menos una buena guia que me deje en claro esto.
Osea quiero que el header se ajuste al navegador, ¿en anchura?
el footer tambien, ¿en anchura también?
y la parte del contenido se centre. ¿centrado horizontal?
Muchas gracias saludos!
¿Algo así?
Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="es-es">
  3. <title>Kseso? jugando con css</title>
  4. <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
  5. <style type="text/css">
  6. * {margin: 0; padding:0; outline: none; border: 0;}
  7. body, html {
  8.   background: #444;
  9.   height:100%;
  10.   width:100%;
  11. }
  12. #header {
  13.   width: 100%;
  14.   height: 100px;
  15.   background: #FF6600;
  16.   position: relative;
  17. }
  18. #cuerpo {
  19.    height:900px;
  20.    width:1065px;
  21.   margin:0 auto;
  22.   background: #3300FF;
  23.   position: relative;
  24. }
  25. #footer {
  26.   width:100%;
  27.   height: 100px;
  28.   background: #FF6600;
  29. position: relative;
  30.   }
  31. </head>
  32. <div id="header"></div>
  33. <div id="cuerpo">
  34.     <div id="contenido">
  35.  
  36.     </div>
  37. </div>
  38. <div id="footer"></div>
  39. </body>
  40. </html>

Un saludo
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++