Html <div> imbriquées
Résolu
tuxinet
Messages postés
84
Statut
Membre
-
974_Vin's_974 Messages postés 554 Statut Membre -
974_Vin's_974 Messages postés 554 Statut Membre -
Bonjour,
j'ai un souci avec des div... je suis en train de faire le header qui doit contenir une div de gauche et une div de droite. La div de droite doit elle encore contenir deux divs :
voici mon fichier css :
#page {
width:1000px;
height:650px;
text-align:left;
margin:0 auto;
background:#000000;
}
#header {
width:1000px;
height:200px;
background:#333333;
}
#subheader_left {
width:300px;
height:200px;
background:#555555;
}
#subheader_right {
width:700px;
height:200px;
background:#777777;
}
#subheader_right_top {
width:700px;
height:75px;
background:#555FFF;
}
#subheader_right_bottom {
width:700px;
height:125px;
background:#555000;
}
Et le fichier index.php :
<div id="page">
<div id="header">
<div id="subheader_left">
</div>
<div id="subheader_right">
<div id="subheader_right_top">
</div>
<div id="subheader_right_bottom">
</div>
</div>
</div>
</div>
Je ne sais vraiment pas pourquoi mais la div subheader_right ne se trouve pas dans le header... mais dessous... et j'ai beau eu chercher... je n'ai pas trouvé de solution..
Quelqu'un peut-il m'aider? Merci d'avance
j'ai un souci avec des div... je suis en train de faire le header qui doit contenir une div de gauche et une div de droite. La div de droite doit elle encore contenir deux divs :
voici mon fichier css :
#page {
width:1000px;
height:650px;
text-align:left;
margin:0 auto;
background:#000000;
}
#header {
width:1000px;
height:200px;
background:#333333;
}
#subheader_left {
width:300px;
height:200px;
background:#555555;
}
#subheader_right {
width:700px;
height:200px;
background:#777777;
}
#subheader_right_top {
width:700px;
height:75px;
background:#555FFF;
}
#subheader_right_bottom {
width:700px;
height:125px;
background:#555000;
}
Et le fichier index.php :
<div id="page">
<div id="header">
<div id="subheader_left">
</div>
<div id="subheader_right">
<div id="subheader_right_top">
</div>
<div id="subheader_right_bottom">
</div>
</div>
</div>
</div>
Je ne sais vraiment pas pourquoi mais la div subheader_right ne se trouve pas dans le header... mais dessous... et j'ai beau eu chercher... je n'ai pas trouvé de solution..
Quelqu'un peut-il m'aider? Merci d'avance
A voir également:
- Html <div> imbriquées
- Editeur html - Télécharger - HTML
- Div c++ - Télécharger - Langages
- Espace en html ✓ - Forum HTML
- Nbsp html ✓ - Forum Webmastering
- [**] Balise pour un espace vide en hml. Merci ✓ - Forum Webmastering
J'ai rajouté float:left; au subheader_left et au subheader_right dans mon ficher css.
Merci beaucoup 974_Vin's_974