CSS link text color problem..

This is a discussion on "CSS link text color problem.." within the Web Page Design section. This forum, and the thread "CSS link text color problem.. are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 25th, 2008, 19:43
Junior Member
Join Date: Feb 2008
Location: Pennsylvania
Age: 22
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
CSS link text color problem..

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!
Reply With Quote

  #2 (permalink)  
Old Jun 25th, 2008, 21:03
CloudedVision's Avatar
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 1,205
Blog Entries: 9
Thanks: 2
Thanked 37 Times in 37 Posts
Re: CSS link text color problem..

You mean the global navigation links at the bottom? They look fine to me.
__________________
CloudedVision, WebForumz Moderator
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Reply With Quote
  #3 (permalink)  
Old Jun 25th, 2008, 21:22
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,993
Blog Entries: 1
Thanks: 0
Thanked 32 Times in 32 Posts
Re: CSS link text color problem..

This is happening because you are getting the a:visited state which by default is purple. Clear your cache and/or define the a:visited {color:;} in your CSS to over write it.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #4 (permalink)  
Old Jun 25th, 2008, 22:20
Junior Member
Join Date: Feb 2008
Location: Pennsylvania
Age: 22
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Re: CSS link text color problem..

Quote:
Originally Posted by moojoo View Post
This is happening because you are getting the a:visited state which by default is purple. Clear your cache and/or define the a:visited {color:;} in your CSS to over write it.

I already have a:visited defined!
Reply With Quote
  #5 (permalink)  
Old Jun 25th, 2008, 22:39
CloudedVision's Avatar
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 1,205
Blog Entries: 9
Thanks: 2
Thanked 37 Times in 37 Posts
Re: CSS link text color problem..

Yep, but theres a syntax error:

Code: Select all
a:visited {
	color: #808080
	text-decoration: none;
}
You forgot the semicolon after the color declaration.
__________________
CloudedVision, WebForumz Moderator
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Reply With Quote
The Following User Says Thank You to CloudedVision For This Useful Post:
  #6 (permalink)  
Old Jun 25th, 2008, 22:42
Up'n'Coming Member
Join Date: Jun 2008
Location: Australia
Posts: 80
Thanks: 0
Thanked 4 Times in 4 Posts
Re: CSS link text color problem..

The CSS validator is telling you that you have two errors:

1. You don't have a semicolon after your color value for a:visited (should be color: #808080

2. the color you have set for .menutxt is an incorrect hex number (you have too many zeros )

your also getting one warning:

Same colors for color and background-color in two contexts #container and .whitetxt
Reply With Quote
The Following User Says Thank You to Grubious For This Useful Post:
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having a problem with background color? jaambees Web Page Design 2 Jan 4th, 2008 02:05
[SOLVED] Link Color and problem with Image positioning! Ed Web Page Design 33 Oct 10th, 2007 11:17
Link color, not working. PicoDeath Web Page Design 5 Jul 28th, 2007 02:13
link color somsahi Web Page Design 3 Aug 25th, 2006 17:02
Anybody know how to change the color of a text input form in Physt Web Page Design 7 Aug 16th, 2004 08:44


All times are GMT. The time now is 02:14.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43