iNCiTE Web
mardi 15 juillet 2008 à 18:00
Aaaargh j'avais pondu une réponse complète mais elle a disparu !!
Donc je te disais d'abord de supprimer le double appel à "menu1.css" dans ton header, ça met le bazar ne serait-ce que pour moi pour regarder avec firebug et l'édition en temps réel...
Ensuite c'est tout simple, tu retires tous les "left:" et les "position:absolute" et pour chaque élément <a> tu ajoutes "display: block" et "float: left"
J'ai fait le test ça fonctionne parfaitement (à part ta table qui suit qui est trop large)
Mais depuis hier tu as bidouillé essai2.html donc ton image header n'est plus centrée, il faut remettre margin:auto pour #header (idem d'ailleurs pour .menu)
Ton code mériterait un grand nettoyage, pour la clarté, pour la validité HTML ; il y a des mélanges CSS, des propriétés HTML ou obsolètes directement dans le code, n'utilise pas d'accents pour les noms des classes CSS etc.
CODE
@charset "utf-8";
/* CSS Menu - TOUS GRENAT ! */
#header {
background: url(image/header.jpg) no-repeat;
width: 760px;
height: 155px;
margin: auto;
}
.menu
{
width : 760px;
height : 34px;
background: url(image/bck.jpg) no-repeat #882341;
margin: auto;
}
.Accueil
{
display: block;
float: left;
width : 52px;
height : 34px;
background-image : url(image/accueil.png);
}
.Accueil:hover
{
display: block;
width : 52px;
height : 34px;
background-image : url(image/accueil1.png);
}
.Ligue2
{
display: block;
float: left;
width : 52px;
height : 34px;
background-image : url(image/ligue2.png);
}
.Ligue2:hover
{
display: block;
width : 52px;
height : 34px;
background-image : url(image/ligue21.png);
}
.Calendrier
{
display: block;
float: left;
width : 64px;
height : 34px;
background-image : url(image/calendrier.png);
}
.Calendrier:hover
{
display: block;
width : 64px;
height : 34px;
background-image : url(image/calendrier1.png);
}
.Effectif
{
display: block;
float: left;
width : 48px;
height : 34px;
background-image : url(image/effectif.png);
}
.Effectif:hover
{
display: block;
width : 48px;
height : 34px;
background-image : url(image/effectif1.png);
}
.Transfert
{
display: block;
float: left;
width : 60px;
height : 34px;
background-image : url(image/transfert.png);
}
.Transfert:hover
{
display: block;
width : 60px;
height : 34px;
background-image : url(image/transfert1.png);
}
.Supporters
{
display: block;
float: left;
width : 67px;
height : 34px;
background-image : url(image/supporters.png);
}
.Supporters:hover
{
display: block;
width : 67px;
height : 34px;
background-image : url(image/supporters1.png);
}
.Palmarès
{
display: block;
float: left;
width : 59px;
height : 34px;
background-image : url(image/palmares.png);
}
.Palmarès:hover
{
display: block;
width : 59px;
height : 34px;
background-image : url(image/palmares1.png);
}
.Vidéos
{
display: block;
float: left;
width : 51px;
height : 34px;
background-image : url(image/videos.png);
}
.Vidéos:hover
{
display: block;
width : 51px;
height : 34px;
background-image : url(image/videos1.png);
}
.Pronostics
{
display: block;
float: left;
width : 60px;
height : 34px;
background-image : url(image/pronostics.png);
}
.Pronostics:hover
{
display: block;
width : 60px;
height : 34px;
background-image : url(image/pronostics1.png);
}
.Partenaires
{
display: block;
float: left;
width : 78px;
height : 34px;
background-image : url(image/partenaires.png);
}
.Partenaires:hover
{
display: block;
width : 78px;
height : 34px;
background-image : url(image/partenaires1.png);
}
.Forum
{
display: block;
float: left;
width : 55px;
height : 34px;
background-image : url(image/forum.png);
}
.Forum:hover
{
display: block;
width : 55px;
height : 34px;
background-image : url(image/forum1.png);
}