View Full Version : Link colour change

12-21-2006, 10:05 PM
Hey all,

I've got this problem that was pointed out to me by a friend who uses Opera, but the problem is present in IE7 (possibly 6, haven't checked) as well. I use Firefox so I never noticed, plus it only affects links, which I never needed to click, so I never noticed when I checked it out in IE7 either.

Basically, the links on the site in question (http://www.stoptheqtip.ca, it's all PHP and I haven't bothered to make it perfectly XHTML 1.1 compliant just yet... source code should all be viewable via View Source, CSS is at http://www.stoptheqtip.ca/stylesheet.css) are a shade of blue on a very very light blue-gray (essentially white). In Firefox, it works like I want - when someone clicks the link, it doesn't change colours at all. In Opera, however, apparently the link changes colour to white, making it damn near impossible to see. And in IE7, on top of changing colour to white, the link jumps across the page. It's quite bizarre.

I've been racking my brains over this for some time, and come with up with nothing. I'd really appreciate any help anyone can give me. Thanks in advance!

12-21-2006, 11:24 PM
Hello insanedesio,
I'm not sure that's working how you want in anything. In IE7 and FF2, after you click on a link and then come back... the link is gone.

Using the CSS editing in the FF Developers toolbar, I was able to get the links to come back by deleting anything that looked like it was styling a link... haven't figured out yet what the exact cause is though...

12-22-2006, 01:05 AM
It works fine for me in FF2. I think I narrowed it down to the link styles for the navigation links - they're white and also floated to the right, which would explain why it jumps across the page in IE7. But removing it didn't fix the problem, so I'm really at a loss to explain what's causing it.

12-22-2006, 01:10 AM
Never mind, I looked at all the link tags and found the problem (I cannot believe that I missed it before). On a couple of tags that I specified in one declaration I forgot to add the proper prefix (i.e. I forgot to add a div#nav to an a:visited) so it was being applied to the entire page. Thanks for the tipoff though :).

I hate myself :p.

12-22-2006, 09:35 PM
Oh b4 u go, NEVER use XHTML DTD because it is harder.

12-22-2006, 09:39 PM
Stop giving bad advice. If you can't take the time to learn how to code in XHTML then don't. Its really not that much harder.