C'est vraiment frustrant !! Par moment ça s'affiche correctement et par moment ce décalage revient alors que j'ai même pas retouché au code
![:( :(]()
ça me l'a déja fais sur firefox aussi j'y comprends rien..
Voilà tout le code css :
body
{
width: 862px;
margin: auto;
margin-top: 0px;
margin-bottom: 0px;
background-color: #000000;
background: #837b51 url(images/factices.png) repeat-y 50%;
}
/* L'en-tête */
#en_tete
{
width: 862px;
height: 334px;
background-image: url("images/header3.png");
background-repeat: no-repeat;
margin-bottom: 0px;
}
/* Le menu */
#menu1
{
float: left;
width: 149px;
}
#menu2
{
float: right;
width: 149px;
}
.element_menu
{
border: 0px solid black;
padding-bottom: 10px;
}
/* Quelques effets sur les menus */
.element_menu ul
{
list-style-image: url("images/puce.png");
padding: 0px;
padding-left: 20px;
margin: 0px;
margin-bottom: 0px;
}
.element_menu a
{
color: #B3B3B3;
}
.element_menu a:hover
{
background-color: #B3B3B3;
color: black;
}
/* Le corps de la page */
#corps
{
margin-left: 149px;
margin-right: 149px;
padding: 5px;
color: #000000;
background-color: #FFFFFF;
border: 0px solid black;
}
#corps h1
{
color: #B3B3B3;
text-align: center;
font-family: Arial, "Arial Black", "Times New Roman", Times, serif;
}
#corps h2
{
height: 30px;
background-image: url("images/titre.png");
background-repeat: no-repeat;
padding-left: 30px;
color: #B3B3B3;
text-align: left;
}
/* Le pied de page (qui se trouve tout en bas, en général pour les copyrights) */
#pied_de_page
{
text-align: center;
width: 862px;
height: 60px;
color: #000000;
background-image: url("images/footer.png");
background-repeat: no-repeat;
}
et voilà pour le code html :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>">
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>" xml:lang="fr" >
<head>
<title>La taverne d'Eorzea</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="design.css" />
</head>
<body>
<!-- L'en-tête -->
<div id="en_tete">
</div>
<!-- Les menus -->
<div id="menu1">
<div class="element_menu">
<img src="images/motif.png" alt="motif du menu" />
<ul>
<li><a href="page1.html">Lien</a></li>
<li><a href="page2.html">Lien</a></li>
<li><a href="page3.html">Lien</a></li>
</ul>
</div>
<div class="element_menu">
<center><img src="images/motif.png" alt="motif du menu" /></center>
<ul>
<li><a href="page4.html">Lien</a></li>
<li><a href="page5.html">Lien</a></li>
<li><a href="page6.html">Lien</a></li>
</ul>
</div>
</div>
<div id="menu2">
<div class="element_menu">
<img src="images/motif2.png" alt="motif du menu" />
<ul>
<li><a href="page1.html">Lien</a></li>
<li><a href="page2.html">Lien</a></li>
<li><a href="page3.html">Lien</a></li>
</ul>
</div>
<div class="element_menu">
<img src="images/motif2.png" alt="motif du menu" />
<ul>
<li><a href="page4.html">Lien</a></li>
<li><a href="page5.html">Lien</a></li>
<li><a href="page6.html">Lien</a></li>
</ul>
</div>
</div>
<!-- Le corps -->
<div id="corps">
<h1>Mon super site</h1>
</div>
<!-- Le pied de page -->
<div id="pied_de_page">
</div>
</body>
</html>
Edit : En fait même sur firefox ce décalage apparaît maintenant..