[résolu] Structure page WEB
Publié : 04 avr. 2008, 09:00
Bonjour,
cela fait plusieurs jours que j'essaye, en vain, de mettre à la même hauteur un menu et le corps.
le code suivant fonctionne bien avec IE, mais pas avec Mozilla.
si quelqu'un peut-il me dire ce qui cloche, ce serait sympa.
voici le xhtml :
<body>
<div id="EnTete">
<!-- Ici Test.gif (760x100px)-->
</div>
<div id="Menus">
<div>
<h3>Menus</h3>
</div>
</div>
<div id="Corps">
<div>
<h1>Corps</h1>
</div>
</div>
</body>
et le CSS :
body
{width:760px;
margin:auto;
margin-top:20px;
margin-bottom:20px;
background-color:#f0f8ff;}
#EnTete
{width:760px;
height:100px;
background-image:url(Test.gif);
background-repeat:no-repeat;
margin-bottom:20px;}
#Menus
{float:left;
width:120px;}
h3
{border:1px solid #000000;
background-color:#ffebcd;
color:#0000ff;
padding:10px 10px 10px 10px;
font-family:"Times New Roman";
text-align:center;}
#Corps
{border:1px solid #000000;
background-color:#ffebcd;
color:#00008b;
margin-left:140px;
margin-bottom:20px;
padding:5px;}
#Corps h1
{color:#0000ff;
text-align:center;
font-family:"Times New Roman";}
Merci.
Message envoyé avec : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
cela fait plusieurs jours que j'essaye, en vain, de mettre à la même hauteur un menu et le corps.
le code suivant fonctionne bien avec IE, mais pas avec Mozilla.
si quelqu'un peut-il me dire ce qui cloche, ce serait sympa.
voici le xhtml :
<body>
<div id="EnTete">
<!-- Ici Test.gif (760x100px)-->
</div>
<div id="Menus">
<div>
<h3>Menus</h3>
</div>
</div>
<div id="Corps">
<div>
<h1>Corps</h1>
</div>
</div>
</body>
et le CSS :
body
{width:760px;
margin:auto;
margin-top:20px;
margin-bottom:20px;
background-color:#f0f8ff;}
#EnTete
{width:760px;
height:100px;
background-image:url(Test.gif);
background-repeat:no-repeat;
margin-bottom:20px;}
#Menus
{float:left;
width:120px;}
h3
{border:1px solid #000000;
background-color:#ffebcd;
color:#0000ff;
padding:10px 10px 10px 10px;
font-family:"Times New Roman";
text-align:center;}
#Corps
{border:1px solid #000000;
background-color:#ffebcd;
color:#00008b;
margin-left:140px;
margin-bottom:20px;
padding:5px;}
#Corps h1
{color:#0000ff;
text-align:center;
font-family:"Times New Roman";}
Merci.
Message envoyé avec : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)