Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/07/2010, 10:54
danielalejandro
 
Fecha de Ingreso: julio-2010
Mensajes: 26
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: Div Contenido con Height variable (liquido?)

pues segun lo prove y se ve bien pero no lo se prueba y me dices que tal te fue

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. <style type="text/css">
  3. html, body { height: 100%;
  4. overflow: hidden;
  5. margin: 0;
  6. }
  7. #superior { background-color: #ff0;
  8. font-size: 9px;
  9. position: relative;
  10. height: 80px;
  11. }
  12. #inferior { background-color: #ff0;
  13. font-size: 9px;
  14. width: 100%;
  15. height: 80px;
  16. position: absolute;
  17. bottom: 0;
  18. }
  19. #central { background-color: #33f;
  20. overflow: auto;
  21. position: absolute;
  22. width: 100%;
  23. top: 80px;
  24. bottom: 80px;
  25. }
  26.  
  27. </head>
  28. <div id="contenedor">
  29. <div id="superior">SUPERIOR</div>
  30. <div id="central">central<br />
  31. central<br />
  32. central<br />
  33.  
  34. central<br />
  35. central<br />
  36. central<br />
  37. central<br />
  38. central<br />
  39. central<br />
  40. central<br />
  41. central<br />
  42. central<br />
  43.  
  44. central<br />
  45. central<br />
  46. central<br />
  47. central<br />
  48. central<br />
  49. central<br />
  50. central<br />
  51. central<br />
  52. central<br />
  53.  
  54. central<br />
  55. central<br />
  56. central<br />
  57. central<br />
  58. central<br />
  59. central<br />
  60. </div>
  61. <div id="inferior">INFERIOR</div>
  62. </div>
  63. </body>
  64.  
  65. </html>

salu2