iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-2008, 07:20 PM
ncriptide's Avatar
WebProWorld New Member
 
Join Date: Aug 2005
Location: Indian Trail, NC
Posts: 19
ncriptide RepRank 0
Default Link color problem

On this site: New Mexico Hair Restoration, Hair Loss, Hair Loss Solutions by Dr Kirkpatrick

The "Solutions" page should have links that are bold yellow in color because they are on a dark page background (per client request - not mine).

But the links on the Products and FAQ pages (which are white background) also has its links in yellow - which won't work, because you lose the words. I just wanted them standard blue underline links that are suppose to be default.

The "Solutions" page links are under a div ID called "hairRestore". That is the only div that I specified in my stylesheet as having yellow links.

The footer links should be white - according to my stylesheet - and they're not - they are yellow.

The links on the other pages, Products and FAQ are under a mainText div ID which has no link colors assigned. Should not that default to the standard link color?

If someone could look over the site and the css and tell me what stupid thing I did wrong, it would be greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 01-31-2008, 05:11 PM
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 349
imvain2 RepRank 1
Default Re: Link color problem

I noticed on your solutions page that you don't have a div with theID hairrestore you have an UL with that ID. I'm not a CSS guru, but I noticed that differed from what you typed.

For me in IE, your footer links are: white, yellow on hover and yellow bold on visited (maybe you have visited ALL the pages that is why they are yellow for you)
Reply With Quote
  #3 (permalink)  
Old 01-31-2008, 05:23 PM
WebProWorld New Member
 
Join Date: Nov 2006
Location: Washington State
Posts: 14
Refiner RepRank 0
Default Re: Link color problem

You can override CSS from a separate stylesheet directly in the html head or inline.

For you, I recommend adding a separate CSS class for the links on the white background so you can control them separately.
Reply With Quote
  #4 (permalink)  
Old 01-31-2008, 07:30 PM
iany's Avatar
WebProWorld Veteran
 
Join Date: Sep 2003
Location: Stirling, Scotland
Posts: 321
iany RepRank 1
Default Re: Link color problem

I have checked in FF and IE6 and the links appear fine to me. white but yellow on hover. Where not specified, the links are blue and underlined!

However, IE6 the whole site breaks with the central element aligned left.

Not sure what you have done, but there are three errors in your css.

Line 5 background-image has too many elements,
line 27, typo "magin" instead of "margin"
line 112 paddiing instead of padding.

The error on line 27 will certainly affect the alignment of the top banner.

Cheers

Ian
Reply With Quote
  #5 (permalink)  
Old 01-31-2008, 08:22 PM
ncriptide's Avatar
WebProWorld New Member
 
Join Date: Aug 2005
Location: Indian Trail, NC
Posts: 19
ncriptide RepRank 0
Default Re: Link color problem

Sorry - since I posted on WebProWorld, I solved the problem.

Problem was, I had:

#hairRestore a:link, a:visited {
color:#FFFF00;
text-decoration:underline;
font-weight:bold;
}

Instead of:

#hairRestore a:link, #hairRestore a:visited {
color:#FFFF00;
text-decoration:underline;
font-weight:bold;
}

Same with the footer div . . . beginner mistake and one I'll NEVER make again!

Thanks for your response. I appreciate you taking the time in trying to help. . .

Reggie
Reply With Quote
  #6 (permalink)  
Old 01-31-2008, 08:24 PM
ncriptide's Avatar
WebProWorld New Member
 
Join Date: Aug 2005
Location: Indian Trail, NC
Posts: 19
ncriptide RepRank 0
Default Re: Link color problem

Quote:
Originally Posted by iany View Post
I have checked in FF and IE6 and the links appear fine to me. white but yellow on hover. Where not specified, the links are blue and underlined!

However, IE6 the whole site breaks with the central element aligned left.

Not sure what you have done, but there are three errors in your css.

Line 5 background-image has too many elements,
line 27, typo "magin" instead of "margin"
line 112 paddiing instead of padding.

The error on line 27 will certainly affect the alignment of the top banner.

Cheers

Ian
Thanks for the insight - that's what I get for being over 40 and viewing my code on a laptop at 1680 x 1050 . . . Thanks for finding the errors. . .
Reply With Quote
  #7 (permalink)  
Old 02-01-2008, 04:00 AM
iany's Avatar
WebProWorld Veteran
 
Join Date: Sep 2003
Location: Stirling, Scotland
Posts: 321
iany RepRank 1
Default Re: Link color problem

Quote:
Originally Posted by ncriptide View Post
Thanks for the insight - that's what I get for being over 40 and viewing my code on a laptop at 1680 x 1050 . . . Thanks for finding the errors. . .
No problem. Always good idea to check with The W3C CSS Validation Service

Ian
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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
A Font Color Problem: www.victorian-music.com Najoba Graphics & Design Discussion Forum 7 11-10-2004 07:16 PM
link problem at google asimkhaliq Google Discussion Forum 1 10-12-2004 07:49 AM
google link problem asimkhaliq Google Discussion Forum 4 10-01-2004 04:57 AM
affiliate link problem vanman465 Graphics & Design Discussion Forum 1 07-19-2004 01:17 PM
Link Problem with Google ProspectorRon Marketing Strategies Discussion Forum 3 06-18-2004 04:36 PM


All times are GMT -4. The time now is 11:39 AM.



Search Engine Optimization by vBSEO 3.3.0