The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Problem with link colors on my web page
Damfin0
post Mar 22 2007, 09:53 AM
Post #1





Group: Members
Posts: 2
Joined: 22-March 07
Member No.: 2,292



For most people that visit my site the links look fine. But for about 10%-20% of visitors the links that are printed in black text show up as white text. since my background is grey it makes it very hard to read the links when this happens. When these people put the mouse over the link it changes to black until the mouse leaves and when they click on it, it will remain black but when they are first coming to the site it is white.

I am refering to every link in my webpage including the navigation down the left side

Can someone help me find what is causing this?

It happens in both internet explorer and firefox and it happens in different operating systems aswell.

here is the site

http://www.mikecottrell.com

Thanks
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Effovex
post Mar 22 2007, 12:12 PM
Post #2


Serious Coder
*****

Group: Members
Posts: 251
Joined: 6-January 07
From: Sherbrooke, Qc, Canada
Member No.: 1,477



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

That rule is probably the cause, as :gr is not a valid pseudo-class.

Validate your CSS to find such errors in the future.

This post has been edited by Effovex: Mar 22 2007, 12:14 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Damfin0
post Mar 22 2007, 12:25 PM
Post #3





Group: Members
Posts: 2
Joined: 22-March 07
Member No.: 2,292



QUOTE(Effovex @ Mar 22 2007, 01:12 PM) *

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

That rule is probably the cause, as :gr is not a valid pseudo-class.

Validate your CSS to find such errors in the future.



You know... I think you're right. I took it out of the code but i'll have to get someone to test this to make sure that is the cause. I have been unable to reproduce the error myself but I'll get someone who had problems to check it out.

Thanks for your help
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Mar 23 2007, 04:39 AM
Post #4


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



You also have two A declarations in your CSS, one a {…} and a a:link {…}. The last overrides the first, see The Cascade.

The order in which you declare A pseudo-classes is of importance too, see Dynamic pseudo-classes.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 07:00 AM