Reply LinkBack Thread Tools Search this Thread
Old 08-02-2007, 12:05   #1 (permalink)
ndroo
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 ?
  Reply With Quote
Old 08-02-2007, 12:26   #2 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
You can sort of fake logic with (X)HTML/CSS with changing combinations of IDs and classes.

You may need to use JavaScript, though.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8