Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/01/2011, 15:19
Avatar de ArturoGallegos
ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 16 años, 2 meses
Puntos: 1146
Respuesta: Div height 100% en container IE6

?¿

Código CSS:
Ver original
  1. * html #container {
  2. height: 100%;
  3. }

el doctype???

para que tu div right tome el 100% de altura el padre deve tener una altura definida ya sea en porcentaje o en px

prueba algo asi:
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" xml:lang="en" lang="en">
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title>Ejemplo</title>
  5. <style type="text/css" media="screen">
  6. * {
  7. padding: 0;
  8. margin: 0;
  9. }
  10. html,body{margin:0;padding:0;height:100%;}
  11. body {
  12. background: #333333;
  13. }
  14. #container { width: 900px;height: 100%; position:relative; margin:auto; background:#009933 }
  15.  
  16. #left {
  17. margin:0;
  18. padding:0;
  19. width:200px;
  20. height:600px;
  21. color:#333;
  22. background:#eaeaea;
  23. border:1px solid #333;
  24.  
  25. }
  26.  
  27. #right {
  28. position:absolute;
  29. right: 0;
  30. top: 0;
  31. padding:0;
  32. width:200px;
  33. height:100%;
  34. color:#333;
  35. background:#eaeaea;
  36. }
  37.  
  38. </head>
  39.  
  40. <div id="container">
  41.    
  42.     <div id="left">div con altura fija</div>
  43.    
  44.     <div id="right">mi div 100% height</div>
  45. </div>
  46. </body>
  47. </html>

Ps: también prueba buscar en el foro o google sobre columnas equilibradas