We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

liquidfuse on 06/08/09


Tagged


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

jamesming


Eliminating the dotted line box that appears around a link


Published in: CSS 


URL: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_22464035.html

This css tweak eliminates the dotted line box that appears around a link after it has been clicked on.

Add the code between your tags:

*I tested in Firefox 3.0+ and IE 8 on an OS running Windows 7 RC Build 7100. It works fine for me!

  1. <style type="text/css">
  2. a:focus, a:active {
  3. outline: 0;
  4. -moz-outline: none;
  5. }
  6. </style>

Report this snippet 

You need to login to post a comment.