Forum Moderators: not2easy
The list elements I am using will be repeated several times on the page, with the only difference being the images used for the rollovers. Thus, I was trying to change the #nav elements in the SimpleBits example from IDs to classes (.nav instead of #nav). Things work fine with the #nav notation, but by only changing the CSS (and corresponding XHTML) to .nav, the rollover effect stops working.
Why is this?
I have separate ID elements for the individual list items, so that's all I want to change. Why should I have to repeat the other styling/positioning code for nav element, when the only piece changing is the image used? I just don't get it. Is there something about class vs. ID that prevents the rollover?
Any help is greatly appreciated.