Home > CSS > Remove dotted lines from links

Remove dotted lines from links

February 18th, 2009

The dotted lines that appear around links is an accessibility feature for people who can't use a mouse and are forced to use a keyboard to navigate. It works well when you use the tab key but it still shows when you are using a mouse.

If your working on government sites that need w3c compliance then I would not recommend removing this feature, otherwise use the CSS code below.

a {
      /* Mozilla */
	outline:none;
 
	/* IE */
	-moz-outline-style: none;
   }

You could get fancy and use the dotted line to your advantage. With CSS you can change the dotted line type to solid or change its colour to suit the design.

Good Luck!

Post to Twitter Post to Plurk Plurk This Post Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to Reddit Reddit Post to StumbleUpon Stumble This Post

Flashnutz CSS ,

  1. June 3rd, 2009 at 02:41 | #1

    I am a student using Dreamweaver for the first time, and generally just work in design view.

    At which point in the code do i insert the above CSS code in order to rectify this problem with my site?

  2. June 3rd, 2009 at 15:22 | #2

    Hi Eira,
    simply insert the code above within you header tag.

    Untitled Document

    a {
    /* Mozilla */
    outline:none;

    /* IE */
    -moz-outline-style: none;
    }

  1. No trackbacks yet.
SEO Powered by Platinum SEO from Techblissonline