Contact Jan Thomas Consulting

May 12, 2007

Focus rings in Firefox

Filed under: Programming Techniques — jan @ 11:38 am

Firefox: When you click on a hyperlink image there is an active box that frames the image. If you happen to stay on the page after an image is clicked, the active box stays. Here’s one way to prevent this:

This has to be put into the css:

/* Remove focus rings (dotted rectangle) around active tabs */
tab:focus > .tab-middle { -moz-outline: none !important }

If that doesn’t fix the problem, add this into the css as well:
a
{
  outline: none;
}

 Hopefully, that will take care of the problem.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

© 2011 JanBThomas Last Updated January 2011. Privacy Policy

Powered by WordPress