I have a website using the typical frameset that consists of a title frame, navigation frame on left, and main content frame. I would like the navigation tree in the left frame to always highlight the current location. Sounds easy.
I have a stylesheet stating a:active {color:red;} and that works fine, until I click anywhere else in the site, and the text goes back to it's original color.
How do I get that link to stay it's active color until another link in the same frame is clicked?Here is an excellent article that should help:
<!-- m --><a class="postlink" href="http://www.hicksdesign.co.uk/articles/css/highlighting_current_page_with_css/">http://www.hicksdesign.co.uk/articles/c ... _with_css/</a><!-- m -->
LeeThanks LeeU,
Unfortunately that did not work. It works on the page you linked me to because he is not using frames. I think???
I don't understand why simply clicking somewhere else on the page, even in the same frame, causes the link to lose it's style.
Any other ideas?The "active" psuedo-class is specifically for when the element is active; meaning, if you click elsewhere, whatever element upon which you clicked is now active instead. So if you click even on the background, the BODY element is not active, instead of the A element. Can you show us what you have thus far?
I have a stylesheet stating a:active {color:red;} and that works fine, until I click anywhere else in the site, and the text goes back to it's original color.
How do I get that link to stay it's active color until another link in the same frame is clicked?Here is an excellent article that should help:
<!-- m --><a class="postlink" href="http://www.hicksdesign.co.uk/articles/css/highlighting_current_page_with_css/">http://www.hicksdesign.co.uk/articles/c ... _with_css/</a><!-- m -->
LeeThanks LeeU,
Unfortunately that did not work. It works on the page you linked me to because he is not using frames. I think???
I don't understand why simply clicking somewhere else on the page, even in the same frame, causes the link to lose it's style.
Any other ideas?The "active" psuedo-class is specifically for when the element is active; meaning, if you click elsewhere, whatever element upon which you clicked is now active instead. So if you click even on the background, the BODY element is not active, instead of the A element. Can you show us what you have thus far?