Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outine:none to highlight active link in framesets 1

Status
Not open for further replies.

retrositelover

Programmer
Oct 20, 2004
35
0
0
I've got a little problem with Firefox and would be glad if someone could give me a hint.

in order to provide the visitor with an indicator what page he's actually viewing, I use this code:

Code:
a:active,a:focus{background:#F0FFF0;outline:none}

works fine in both Opera and Konqueror, but Firefox clears the background as soon as one scrolls within the target frame

demo
 
but Firefox clears the background as soon as one scrolls within the target frame

No it doesn't... it clears it when the focus is lost from the link, so I'm guessing you're clicking before scrolling.

If you want to guarantee the link stays highlighted, then you might have to use some forum216 to set the class on the anchor to something until another anchor is clicked.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
of course, you're right. I meant scrolling with mouse/bars :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top