|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
How can I have multiple hover statements so that different classes can been a different colour when hovered over? At the moment I have two sets of links, with two different classes in my styles sheet. A:Hover { text-decoration: none } .main_links { color: whatever } .sub_links { color: whatever } So, all my links have no underline, but what if I want one set of links with underlines and one without? Is there anyway to do this? TIA, Jord |
|
#2
|
|||
|
|||
|
I think this works:
A.main_links:Hover { color: whatever; text-decoration: underline; } A.sub_links:Hover { color: whatever; text-decoration: underline;} |
|
#3
|
|||
|
|||
|
Cheers
How do I add that to my linke, like <A CLASS="main_links"></A> ?
Jord |
|
#4
|
|||
|
|||
|
Yep ... that's exactly what you'd do ... except one of your text-decoration values would be "none".
![]()
__________________
-- Bob Boyle boyleb@rappdigital.com www.rappdigital.com |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS: Multiple Hovers |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|