2010-10-13 14 views
0

J'ai un conteneur, où j'ai quelques divs: en-tête, contenu, pied de page (en tant qu'application standart).CSS - IE ne pas obtenir la marge inférieure de la dernière div

ceci est la structure:

<body> 
    <div> 
     <div id="ROOT" > 
      <div id="ROOT_0" > 
       Header 
      </div> 

      <div id="ROOT_1" > 
       Content 
      </div> 

      <div id="ROOT_2" > 
       Footer 
      </div> 
     </div> 
    </div> 
</body> 

Le CSS réelle:

html {height:101%;} 
body {background:#999999;} 

#ROOT{ background-color:#333333; width:980px; margin-left:auto; margin-right:auto; overflow:auto;} 
#ROOT_0{background-color:#FF9933; width:970px; text-align:center; float:left; margin-top:5px; margin-left:5px; margin-right:5px; margin-bottom:5px;} 
#ROOT_1{width:980px; text-align:center; float:left; background-image:url(../img/sfondofc.jpg);} 
#ROOT_2{background-color:#FF9933; width:970px; padding-top:5px; padding-bottom:5px; text-align:center; float:left; margin-top:5px; margin-bottom:5px; margin-left:5px; margin-right:5px; font-weight:bold; font-size:13px;} 

background-color:#FF9933; width:970px; padding-top:5px; padding-bottom:5px; text-align:center; float:left; margin-top:5px; margin-bottom:5px; margin-left:5px; margin-right:5px; font-weight:bold; font-size:13px; 

unfortunatly, sur IE (6) i ne peut pas voir la marge-bottom: 5px; à la fin, où j'ai le pied de page. Quelle propriété dois-je changer? Bravo

Répondre

0

Pourquoi avez-vous défini la propriété height de html à 101%?

+0

hum, c'est juste un "truc". Mon site web avait des pages très longues, l'autre n'est pas si longue. Donc, si je veux toujours la barre de défilement à gauche, je mets le html à 101%! donc le site ne bouge pas vers la gauche-droite :) – markzzz