CSS : Selectionner le parent

CSS : Selectionner le parent - HTML/CSS - Programmation

Marsh Posté le 28-08-2005 à 23:07:31    

Salut à tous !
 
Une petite question :
a:hover > img:hover { text-decoration: none; border-bottom: 1px solid; }
permet de "styler" toute image survolée d'un lien survolée... donc de "styler" l'enfant "img" de "a"
mais comment choisir le parent ?
Donc de "styler" le lien contenant une image
 
Merci bcp !
 
JMD

Reply

Marsh Posté le 28-08-2005 à 23:07:31   

Reply

Marsh Posté le 28-08-2005 à 23:10:22    

infaisable.
 
Et accessoirement img:hover ne fonctionne pas sous Internet Explorer (pas plus que ">" )


Message édité par masklinn le 28-08-2005 à 23:10:53

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 29-08-2005 à 04:17:01    

et pourquoi pas tout simplement :  
A IMG  
et A:hover IMG

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed