Je me pose un problème, que je vous soumets, n'arrivant pas à quelque chose de concluant (peut-être n'est pas faisable ?)
Mon menu, vertical, est défini avec des listes à pupuce.
Je souhaite y associer une toute petite image, lors des passages de souris.
Voici le css:
CODE
#linkList ul {
margin: 0px;
padding: 0px;
}
#linkList li {
line-height: 2.5ex;
list-style-type: none;
display: block;
padding-top: 5px;
margin-bottom: 5px;
}
#linkList li a:link {
background: transparent url(commun/pause1.gif) no-repeat top right;
color: #000000;
}
#linkList li a:hover {
background: transparent url(commun/pause2.gif) no-repeat top right;
color: #000000;
}
#linkList li a:visited {
background: transparent url(commun/pause3.gif) no-repeat top right;
color: #000000;
text-decoration:underline;
}
#linkList li a:active {
background: transparent url(commun/pause.gif) no-repeat top right;
color: #000000;
}
margin: 0px;
padding: 0px;
}
#linkList li {
line-height: 2.5ex;
list-style-type: none;
display: block;
padding-top: 5px;
margin-bottom: 5px;
}
#linkList li a:link {
background: transparent url(commun/pause1.gif) no-repeat top right;
color: #000000;
}
#linkList li a:hover {
background: transparent url(commun/pause2.gif) no-repeat top right;
color: #000000;
}
#linkList li a:visited {
background: transparent url(commun/pause3.gif) no-repeat top right;
color: #000000;
text-decoration:underline;
}
#linkList li a:active {
background: transparent url(commun/pause.gif) no-repeat top right;
color: #000000;
}
Le principe est d'afficher un rond (par exemple), lorsque le lien est inactif, puis un carré lors du survol, et un triangle lorsqu'il est actif.
Malheureusement, l'image ne prend que la taille de la chaîne de caractère (le nom du lien), et non sa taille réelle (bcp plus grande).
Auriez-vous une solution ?
Merci,
xpatval