Merci BnA.
J'ai supprimé le "margin-top:6px;", ça me met mon texte en haut et le fond a la bonne hauteur, mais le vertical-align et le line-height pour le texte ne fonctionnent pas, que je laisse ou que j'enlève les <p>.
Pour tester sans les <p>, j'ai mis le contenu de "p.texte-bouton" (y compris les vertical-align et line-height) dans les .p:link/visited/hover, mais les vertical-align et line-height ne fonctionnent pas plus... Dois-je les mettre ailleurs ?
J'ai donc fait ceci :
<div id="bouton2"><a href="qui.html" class="bouton">Qui sommes-nous ?</a></div>
et dans la feuille de style :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| .bouton:link {
background-image: url('images/bouton-off.jpg');
text-align:center;
color:#1B2F38;
margin-top: 6
vertical-align:bottom;
line-height:15px;
font-size: 12px;
text-decoration:none;
display: block;
height:29px;
}
.bouton:visited{
background-image: url('images/bouton-off.jpg');
text-align:center;
color:#1B2F38;
vertical-align:bottom;
line-height:15px;
font-size: 12px;
text-decoration:none;
display: block;
height:29px;
}
.bouton:hover{
background-image:url('images/bouton-on.jpg');
text-align:center;
color:#1B2F38;
vertical-align:bottom;
line-height:15px;
font-size: 12px;
text-decoration:none;
font-weight:bold;
display: block;
height:29px;
} |
Merci d'avance de ton aide,
Judith
Partager