Zen Cart Logo
Forums / General Questions / Visited links not acting quite right

Visited links not acting quite right

Locked

Views: 1,325

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
23 Oct 2009, 9:35 PM
#1
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Visited links not acting quite right

My site seems to be acting a little funny. When I click on a sub-category link in the middle of the page the link turns white and blends in with the background upon being clicked. Let me specify that I'm not talking about the links under the categories tab but instead the links in the middle of the page. Even when I return back to the page the visited link is still white. Here's the kicker. In Firefox I cannot seem to get this problem to occur but in IE it happens. I'm running 6.0. Weird. Are you seeing this? If so what version of IE are you running? And lastly, does anyone know what I might do to fix this IE bug? Thanks!

Ian
https://www.mowerpartsupply.com/catalog

23 Oct 2009, 10:30 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Visited links not acting quite right

Ah ha! You didn't specify the center column links before. I see in IE6 that the link turns white for a moment after clicking and before the page refreshes. That would be the :active pseudo-class, so that is the selector to start looking at.
I don't see the white link later, though.
-Nevermind, when I hit the browser back button, I see it.

23 Oct 2009, 10:35 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Visited links not acting quite right

Near the top of your stylesheet:

a:active
{ color:#FFF; }

I guess IE processes things in a different order so that shows up for a measurable amount of time while the link is working?

24 Oct 2009, 3:16 PM
#4
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Visited links not acting quite right

Well sure enough, that was it. But Glenn, how did you know IE was viewing those links as active and not visited?

Ian

24 Oct 2009, 4:04 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Visited links not acting quite right

:active is meant to control the styling of a link after it is clicked and before the page refreshes, so that had to be the place to look. I'm actually not sure why Firefox didn't show the :active color in that moment.