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
Old 01-30-2008, 06:15 PM Link color problem
ncriptide's Avatar
Skilled Talker

Posts: 72
Name: Reggie Byrum
Location: Charlotte, NC
Trades: 0
On this site: http://www.nmhair.com

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.
ncriptide is offline
Reply With Quote
View Public Profile Visit ncriptide's homepage!
 
 
Register now for full access!
Old 01-31-2008, 04:48 AM Re: Link color problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
There is one thing ANY CSS developer should be aware of, is that specificity also applies to multiple element declarations.
for example
HTML Code:
#footer a:link, a:visited {
    color: #ffffff;
    text-decoration: underline;
}
does NOT apply the rule to visited links only in #footer. It applies to visited links globally.
Each item after the comma is a NEW declaration. If this rule is to apply only to links in #footer, then the declaration should be;
HTML Code:
#footer a:link, #footer a:visited {
    color: #ffffff;
    text-decoration: underline;
}
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-31-2008, 07:33 AM Re: Link color problem
ncriptide's Avatar
Skilled Talker

Posts: 72
Name: Reggie Byrum
Location: Charlotte, NC
Trades: 0
Thanks chrishirst!

Stupid newbie mistake, but one I'll NEVER make again!

Thanks so much for your help.

Reggie
ncriptide is offline
Reply With Quote
View Public Profile Visit ncriptide's homepage!
 
Old 02-01-2008, 12:32 PM Re: Link color problem
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Oh you will, and you will do it not just with links. You just won't post about it
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.

Last edited by Mooofasa; 02-01-2008 at 02:48 PM..
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-01-2008, 02:39 PM Re: Link color problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Of course you will, only next time you'll know why it ain't working as expected.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Link 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.35121 seconds with 12 queries