CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 29th, 2001, 12:04 PM
jord jord is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 4 jord User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old March 29th, 2001, 12:22 PM
JohnB JohnB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Location: UK
Posts: 527 JohnB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
I think this works:

A.main_links:Hover { color: whatever; text-decoration: underline; }
A.sub_links:Hover { color: whatever; text-decoration: underline;}

Reply With Quote
  #3  
Old March 29th, 2001, 01:00 PM
jord jord is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 4 jord User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cheers

How do I add that to my linke, like <A CLASS="main_links"></A> ?

Jord

Reply With Quote
  #4  
Old March 30th, 2001, 08:44 AM
finelineBob finelineBob is offline
Senior Meddler
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: NY NY USA
Posts: 142 finelineBob User rank is Private First Class (20 - 50 Reputation Level)finelineBob User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
Send a message via AIM to finelineBob
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS: Multiple Hovers

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap