WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > Visited links are displaying incorrectly.

Reply
  Thread Tools Display Modes
Old 8th November 07, 07:26 AM   #1
cmedesign
WLC Member
 
Join Date: Nov 2007
Posts: 11
Default Visited links are displaying incorrectly.

I'm somewhat of a newcomer to xhtml/css standards webiste creation. I'm working on a site for a client and the css for the links is messed up. My links, once visited, take on the style of certain other links on the website. Here's a URL for the site I'm working on

http://www.newcreationstudios.com/test/estimatingjobs/

Click on the logo or contact link in the header to see what I'm talking about. It's happening to all the links on the site.

Thanks in advance for any help.
cmedesign is offline   Reply With Quote
Old 9th November 07, 03:31 AM   #2
simonpeterong
WLC Lover
 
Join Date: Sep 2007
Location: Philippines
Posts: 323
Default Re: Visited links are displaying incorrectly.

you seemed to missed out on something in your css, I see that you are grouping your declarations, like
Code:
#mastTop a, a:visited { code here}
and you have a standard a:visited also on top. this will get the browser confused on what to follow since you are declared it wrong.

If you are going to make multiple styles on your links what you have to do is to repeat the #div also, so to fix it you have to do from this
Code:
#mastTop a, a:visited {
color: #00543d;
text-decoration: none;
}
to this
Code:
#mastTop a, #mastTop a:visited {
color: #00543d;
text-decoration: none;
}
see that I repeat #mastTop, that will tell the browser that the link property stated above is only for #masTop links only.

Do this to the rest of your css who have conflicting style properties and test it.
simonpeterong is offline   Reply With Quote
Old 9th November 07, 05:18 PM   #3
cmedesign
WLC Member
 
Join Date: Nov 2007
Posts: 11
Default Re: Visited links are displaying incorrectly.

That fixed it. I figured it was something simple. Thanks for your help.
cmedesign is offline   Reply With Quote
Old 10th November 07, 02:01 PM   #4
simonpeterong
WLC Lover
 
Join Date: Sep 2007
Location: Philippines
Posts: 323
Default Re: Visited links are displaying incorrectly.

glad to help out!
simonpeterong is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

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

Forum Jump


All times are GMT. The time now is 06:21 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.