Bonjour,
Je fais mon premier site, j'essaye de me debrouiller tout seul, mais, la, je coince...
Je veut faire un menu simple, dans un calque avec des blocs qui changent d'image au passage de la souris, mais le probleme, c'est que ca decale tout vers le bas...: exemple ici
http://cedopolice.free.fr/
Le code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans nom</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:51px;
top:30px;
width:130px;
height:72px;
z-index:1;
}
-->
</style>
<link href="css/menumarron.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FFFFFF;
}
a:hover {
text-decoration: none;
color: #FFFFFF;
}
a:active {
text-decoration: none;
color: #FFFFFF;
}
-->
</style>
<link href="menumarron.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="menumarron" id="Layer1"><a href="travail a domicile/travail-a-domicile.html">Menu</a><br />
<a href="travail a domicile/Gerez des rencontres.html">menu1</a><br />
<a href="travail a domicile/Créez votre boutique.html">menu2</a></div>
</body>
</html>
le fichier css:
.menumarron {
font-family: "Trebuchet MS";
font-size: 12px;
display: block;
text-align: left;
color: #FFFFFF;
width: 130px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-image: url(normalbouton%20copie.png);
vertical-align: middle;
line-height: 24px;
}
.menumarron :hover {
font-family: "Trebuchet MS";
font-size: 12px;
display: block;
text-align: left;
color: #FFFFFF;
width: 130px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-image: url(normalboutonhover%20copie.png);
vertical-align: middle;
line-height:24px;
Vous avez une idée qui pourrait m'aider?
En vous remerciant d'avance, cedo