Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / CSS challenge: Removing Visited but retaining Active link colour attribute?

CSS challenge: Removing Visited but retaining Active link colour attribute?

Locked

Views: 3,066

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
8 Oct 2006, 6:54 PM
#1
speedyvespa avatar

speedyvespa

New Zenner

Join Date:
Jun 2004
Posts:
60
Plugin Contributions:
0

CSS challenge: Removing Visited but retaining Active link colour attribute?

Hi,

Hope someone can help. I'm upgrading to 1.3.5 and am starting all over again.

I can't seem to get the links to behave how I would like them to - I don't want to use the 'visited' option, so i have it set to the same colour as the normal text (grey).

However, I have a different colour (orange) set for 'Active' (i.e. when I click on the link), however I'd like it to remain that colour while I'm on the page. Once I navigate away, I'd like it to change back to normal (grey).

Currently of course, it changes to the 'Visited' colour once the mouse is released. In my case, that's normal (grey).

Any ideas, anyone? I'm not a CSS wiz.

Thanks in advance.

  • Mark
9 Oct 2006, 10:50 AM
#2
speedyvespa avatar

speedyvespa

New Zenner

Join Date:
Jun 2004
Posts:
60
Plugin Contributions:
0

Re: CSS challenge: Removing Visited but retaining Active link colour attribute?

This isn't a bump, it just struck me that it might not be obvious what I'm trying to explain here! :)

For an example of how I'd like it to work, I found this website...

https://www.hivemodern.com

Notice how the active category link stays green and then goes back to grey when not active. I think it looks great. If only I could work it out...!

Thanks again!

  • Mark
9 Oct 2006, 11:15 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: CSS challenge: Removing Visited but retaining Active link colour attribute?

You were quick to post another site, but a url to your site would have netted you a more precise response,,,

Their is a default color that will display if no color is defined. try removing the defined color from one of your definitions to see the default.

Adjust the default color to the gray that you want and remove the color definition for the ones that you want to be gray

9 Oct 2006, 6:04 PM
#4
speedyvespa avatar

speedyvespa

New Zenner

Join Date:
Jun 2004
Posts:
60
Plugin Contributions:
0

Re: CSS challenge: Removing Visited but retaining Active link colour attribute?

Cheers, Kobra! My site isn't uploaded yet, but it shall be done soon...

I'll give that a go.