Ver Mensaje Individual
  #6 (permalink)  
Antiguo 15/07/2009, 15:38
Avatar de willyfc
willyfc
 
Fecha de Ingreso: octubre-2008
Ubicación: Santa Cruz - Bolivia
Mensajes: 662
Antigüedad: 15 años, 6 meses
Puntos: 40
Respuesta: centrar cuerpo principal y dejar extendidas algunas formas

Si no lo entiendo mal esta sería la estructura que quieres lograr:

Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Untitled Document</title>
  5. <style type="text/css">
  6. #cabecera{width:70%; height:150px; background:#999; margin:0 auto;}
  7. #franja_amarilla{width:100%; height:100px; background-color:#CCCC00;}
  8. #contenido{width:70%; margin:0 auto; min-height:300px; height:auto!important; height:300px; overflow:auto; border:1px solid #333;}
  9. #pie{width:100%; height:70px; background:#333;}
  10.     #pie span{display:block;margin:0 auto; width:70%; text-align:center;/*si quieres de esta manera*/ }
  11. </head>
  12.  
  13. <div id="cabecera"></div>
  14. <div id="franja_amarilla"></div>
  15. <div id="contenido">
  16.     <p>Aqui va tu contenido</p>
  17. </div>
  18. <div id="pie">
  19.     <span>El texto centrado</span>
  20. </div>
  21. </body>
  22. </html>

Copialo y pegalo en un archivo nuevo para ver si es la estructura que quieres.
__________________
WFC
codigo82