Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/06/2009, 08:51
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 11 meses
Puntos: 539
Respuesta: Capa colocada debajo de otra absoluta

Hola vecino de arriba

No alcanzo a comprender qué buscas con las propiedades de #container.
Me he permitido interpretar tu código y hacer lo de abajo. Espero puedas reutilizarlo para tus propósitos.

Un saludo

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" xml:lang="es" lang="es-es">
  3. <title>sin título</title>
  4. <style type="text/css">
  5. * {margin:0; padding:0;position: relative;}
  6. html, body {
  7. background-color: #cdcdcd;
  8. }
  9. #container{
  10. width: 650px;
  11. height: 350px;
  12. margin: 0 auto;
  13. background: #505050;
  14. color: #d2d2d2;
  15. }
  16. #footer {
  17. width:880px;
  18. margin: 0 auto;
  19. height:40px;
  20. background: #00c;
  21. color: #e2e2e2;
  22. }
  23. </head>
  24. <div id="container">
  25. Hola mundo
  26. </div>
  27. <div id="footer">el pie</div>
  28. </body>
  29. </html>
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++