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 April 1st, 2003, 11:25 AM
Darth Evad Darth Evad is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Ontario, Canada
Posts: 56 Darth Evad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 2 sec
Reputation Power: 12
Text color on hover with CSS.

This is the code I have,
Code:
body {
	color: #000000;	
}

a:link {
	color: #000000;
	text-decoration: none;
}

a:active {
	color: #ffffff;
	text-decoration: none;
}

a:hover {
	color: #ffffff;
	background-color: #000000;
	text-decoration: none;
}

a:visited {
	color: #000000;
	text-decoration: none;
}

.left {
	background-color: white;
}

.right {
	background-color: black;
	color: white;
}

I want the text to turn white on hover but it won't.
Any suggestions?

http://htp.360viewonline.com
__________________
Massassian

I did RTFM but I'm a total newb so some of it didn't make sense.

Reply With Quote
  #2  
Old April 1st, 2003, 02:08 PM
degsy degsy is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2001
Posts: 1,882 degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 21 h 19 m 30 sec
Reputation Power: 18
Quote:
A:link { color: red } /* unvisited links */
A:visited { color: blue } /* visited links */
A:hover { color: yellow } /* user hovers */
A:active { color: lime } /* active links */

Note that the A:hover must be placed after the A:link and A:visited rules, since otherwise the cascading rules will hide the 'color' property of the A:hover rule. Similarly, because A:active is placed after A:hover, the active color (lime) will apply when the user both activates and hovers over the A element.



Try changing the order of your code.

Reply With Quote
  #3  
Old April 1st, 2003, 03:02 PM
Darth Evad Darth Evad is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Ontario, Canada
Posts: 56 Darth Evad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 2 sec
Reputation Power: 12
Perfect. Thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Text color on hover with CSS.

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