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
CSS link text color problem..
Old 06-25-2008, 04:45 PM CSS link text color problem..
Experienced Talker

Posts: 30
Trades: 0
Well…I’m having some trouble with formatting link text using CSS…Im not sure why it isn’t working. I’ve done this before in a different site. The text SHOULD be gray and when you hover over it should turn green....the links are purple instead of gray! But the weird thing is the green hover works… Depending on your browser and OS it looks different… I tried validating the CSS file and got an error. But it didn’t make sence…not to me ☹

My Style Sheet
http://sheffield.gomft.com/hfmcc/styles.css


The Site
http://sheffield.gomft.com/hfmcc/index.html


Thanks guys!
jpf566 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-25-2008, 05:18 PM Re: CSS link text color problem..
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I will NEVER understand the point of using a divs and css - and then you stick the whole thing inside a moldy old TABLE. Geez... dump the tables for layout, you do NOT NEED them !

Now, the reason your links are turning purple is because of specificity - there is no color defined for div.menutxt a:visited - so it goes to the default purple.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-25-2008, 07:19 PM Re: CSS link text color problem..
Experienced Talker

Posts: 30
Trades: 0
Quote:
Originally Posted by LadynRed View Post
I will NEVER understand the point of using a divs and css - and then you stick the whole thing inside a moldy old TABLE. Geez... dump the tables for layout, you do NOT NEED them !

Now, the reason your links are turning purple is because of specificity - there is no color defined for div.menutxt a:visited - so it goes to the default purple.
yes I know I know! i need to learn tableless web design, but this site is pretty much done so I am going to study and learn about it for my next project

About my issue... I have a:visited defined!
jpf566 is offline
Reply With Quote
View Public Profile
 
Old 06-25-2008, 07:41 PM Re: CSS link text color problem..
RabidSniper's Avatar
Skilled Talker

Posts: 57
Name: Jesse
Location: Phoenix, AZ
Trades: 0
Specify the gray color code again inside of a:visted{}
which is blank right now.

One thing about table cells, is that they override default font settings.
RabidSniper is offline
Reply With Quote
View Public Profile
 
Old 06-26-2008, 12:18 AM Re: CSS link text color problem..
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Like I said, it's a SPECIFICITY issue. This will work:

.menutxt a:visited{color: orange;}

as an example
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-26-2008, 09:37 AM Re: CSS link text color problem..
Experienced Talker

Posts: 30
Trades: 0
The problem was that I was missing a ; after the a:visited color code!
jpf566 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS link text color problem..
 

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.16375 seconds with 12 queries