| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > Targetting diff elements in an IF statment in CSS |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Join Date: Nov 2006
Posts: 7
|
Targetting diff elements in an IF statment in CSS
I'm facing a problem in that I have this photo gallery, and on hovering on the submenu, a different set of thumbnails open up. However I wish to have my first submenu link already open with its own thumbnails when I load the page. To do this I gave it a different division than the rest, and set its properties to be so on :link and :hover, while the rest have "display:none" on :link and properties set just for :hover. The problem lies in the fact that when I do hover on the other submenus I want the 1st link to " display:none" but I can't think of a way of how to do this without javascript and using only CSS. Is it possible for me to tell the CSS that when i set the properties of the 2nd link on :hover, I also want it to set the 1st link to display:none ? |
|
|
|
![]() |