Click to See Complete Forum and Search --> : Use same CSS for buttons, but with slight difference with each..


coldscooter
10-27-2008, 10:23 AM
Hi, Is it possible to have two id's for the same tag.

Basically i have a set of buttons that are using a global CSS, but i also want each to have it's own independant a:hover style. Is this possible?

Thanks

Fang
10-27-2008, 10:28 AM
Id must be unique, use class to apply style to the buttons.

coldscooter
10-27-2008, 11:18 AM
I have given each <a> a class, but it is still not working.

Is there any reason why this would be invalid:

#eventsDropDown li a.category1:hover
{
background-image:url(../personal_development_over.jpg);
}

Shorts
10-27-2008, 11:23 AM
would have to see the HTML as well.