Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
need a:visited links to still change colour on a:hover
Old 04-03-2006, 10:35 AM need a:visited links to still change colour on a:hover
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Trades: 0
I'm making a site with a menu and normal body area.

I want the menu text to be #ADC2D4, and to go to #296B9D when hovered on.

That's working fine.

Problem is, I can't get the normal main/body hyperlinks to work properly.

They should be #296B9D normally, and then go to #666666 when rolled over.

This works fine, until they're visited. When a visited link is rolled over, nothing happens!

Below's the CSS:

Code:
body {
margin-top: 0;
margin-left: 0;
padding-top: 0;
padding-left: 0;
color:#666666;
size:auto;
font-family:Arial, Helvetica, sans-serif;
}

.title {
	color: #4F5F9D;
	font-weight: bold;
}

.menu {
font-size:12px;
}

.menu a:link {
color:#ADC2D4;
}

.menu a:hover {
color:#296B9D;
}

a:link {
color:#296B9D;
}

a:hover {
color:#666666;
}

a:visited {
color:#ADC2D4;
}

.main {
size: auto;
font-family:Arial, Helvetica, sans-serif;
}

.main a:link {
color:#296B9D;
font-family:Arial, Helvetica, sans-serif;
}

.main a:hover {
color:#666666;
font-family:Arial, Helvetica, sans-serif;
}

.main a:visited {
color:#296B9D;
}
Thanks in advance to anybody who can help me with this tiresome problem!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Harvey is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-03-2006, 12:36 PM Re: need a:visited links to still change colour on a:hover
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
put the pseudo classes in the correct order

link
visited
hover
active.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-05-2006, 07:30 AM Re: need a:visited links to still change colour on a:hover
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Trades: 0
Ah - thanks a lot, Chris.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Harvey is offline
Reply With Quote
View Public Profile
 
Old 04-06-2006, 07:33 PM Re: need a:visited links to still change colour on a:hover
amygdela's Avatar
Super Talker

Posts: 111
Trades: 0
that can be done much quicker:

a {
color: whatever;
}
a:hover {
color: whatever;
}

This way, in every case of a the first color is used, except for the a:hover, because that is specified separately. Get it?
__________________

Please login or register to view this content. Registration is FREE
amygdela is offline
Reply With Quote
View Public Profile
 
Old 04-09-2006, 12:30 PM Re: need a:visited links to still change colour on a:hover
Super Talker

Posts: 126
Location: Australia
Trades: 1
Reason why links are in the correct order. Without an order, all browsers will work but not internet explorer. Hope you learn this
__________________

Please login or register to view this content. Registration is FREE
: Quality Linux Web Hosting Solutions : Since 2004

WHM/cPanel | PHP 5 | 24x7 Support NOW | Daily Backups!

Please login or register to view this content. Registration is FREE
XHTML & CSS Forum for everyone!
Tribolis is offline
Reply With Quote
View Public Profile Visit Tribolis's homepage!
 
Old 04-15-2006, 02:46 AM Re: need a:visited links to still change colour on a:hover
colochris's Avatar
Ultra Talker

Posts: 379
Trades: 0
I think that the order makes some sort of difference, I had problems with mine until I got everything where it needed to be.
__________________

Please login or register to view this content. Registration is FREE
colochris is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to need a:visited links to still change colour on a:hover
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.92873 seconds with 12 queries