Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/11/2009, 15:02
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: Problema centrando capas

si es necesario que tu imagen ocupe todo el fondo en vez de poner un nuevo div podrías asginar el fondo al body en el css:

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=iso-8859-1" />
  4. <title>Documento sin t&iacute;tulo</title>
  5. <style type="text/css">
  6. body{background:#0099FF url(rutaatuimagne);}
  7. #contenedor {
  8.     position: relative;
  9.     clear: left;
  10.     width: 750px;;
  11.     min-height: 100px;
  12.     margin:0 auto;
  13.     text-align:center;
  14. }
  15.  
  16. #izquierda {
  17.     float:left;
  18.     width: 375px;
  19.     height: 30px;
  20.     margin:0 auto;
  21. }
  22.  
  23. #derecha {
  24.     float:right;
  25.     width: 375px;
  26.     height: 30px;
  27.     margin:0 auto;
  28. }
  29. #pie{width:100%; height:20px; background:#CCC; clear:both;}
  30. </head>
  31.  
  32. <div id="contenedor">
  33.     <div id="izquierda">izquierda</div>
  34.     <div id="derecha">derecha</div>
  35.     <div id="pie"></div>
  36. </div>
  37. </body>
  38. </html>
__________________
WFC
codigo82