Linux and Open Source Blog

  • Home
  • WordPress Plugins
  • About
  • Contact

Remove the dotted border around hyper links with CSS

Posted on November 28, 2007 by Linewbie.com Posted in design & development, internet/web .

Almost all websites have them, and they are just extraordinary ugly: Dotted borders around text links. They show up when you click a link and won’t go away till you clicked somewhere else, reloaded the page or moved to another page:

Yes, I know that you saw that before. But why are all those sites displaying those ugly borders? I don’t know, because you don’t need to know any advanced techniques to remove the border! Just add the following code to your CSS document:

a {
outline: none;
}

And gone are the dotted borders!

But does that validate?

It’s easy to think that everyone isn’t using this because it doesn’t validate, though it does validate! Check it out on the W3C Validator on your page if you don’t believe me.

But why isn’t everyone using this?

Because most people don’t know that it is possible In the past it was necessary to have the dotted border around licked links to see if you actually clicked it or not (in he past we had sow computers, so it took a while before the thing actually started downloading the new site). Today we don’t need that anymore in most cases, so please add this code to your Cascading Style Sheets and stop the ugliness!

7 Comments
Tags: css, dotted lines, hyperlinks, link dot .
« Download embedded mp3, songs and videos from websites such as youtube
How to sniff or hack someone’s username and password even if it is over an SSL encrypted connection »

7 Responses

  1. Martin says
    March 1, 2012 at 10:50 am

    Simple, yet satisfying 🙂

    You might need to check over your spelling though.

    Reply
  2. Dr Gorsky says
    November 23, 2012 at 7:04 am

    But why isn’t everyone using this?

    Something to show that a link is active is important for accessibility reasons. Not everybody will be navigating your site with a mouse. Or indeed power users that may wish to ‘tab’ through the links on your page, without the dotted outline (or a suitable alternative) this would be very difficult.

    By all means replace this style with something suitable but do not simple switch it off.

    Reply
    • Larry Paige says
      March 6, 2013 at 2:24 pm

      What about people browsing without eyeballs? What about cuddlefish on the internet?

      I turn off this ugly marquee constantly; if you are visiting my websites without a mouse, anything I can do to make it as difficult as possible for you is a plus. If you are trying to navigate with the keyboard, you’re doing the whole internet wrong. I also don’t support lightpens or raki gestures on my websites.

      Reply
      • George says
        March 16, 2013 at 7:00 pm

        I have rather bad Parkinson’s. I use mainly voice recognition software and a handful of keys on the keyboard to navigate websites. Your advice is terrible.

        Though, maybe in the future someone like me can afford to use eyetracking in place of a mouse. I’ve done enough CSS to know how much longer and more tedious it can get when you make everything fully accessible, but I have hope that things will get easier for future generations like they have for me. Then maybe I can just look at your links to click on them. 🙂

        Reply
  3. youtube.com says
    July 28, 2013 at 3:17 am

    Way cool! Some very valid points! I appreciate you penning this write-up plus the
    rest of the site is also really good.

    Reply
  4. www.youtube.com says
    July 28, 2013 at 5:18 pm

    Hi, i feel that i noticed you visited my weblog thus i got here to
    return the choose?.I’m trying to to find things to improve my web site!I guess its adequate to use some of your concepts!!

    Reply
  5. Job.me says
    March 13, 2017 at 5:54 am

    Was having this problem in the WordPress 2012 theme. Entered a search on how to remove the dotted lines around linked objects and found this page. The solution listed above solved the problem.

    In styles.css look for the line of code that states “outline: thin dotted;” and change it to “outline: none;”

    The comments above regarding accessibility should be taken into consideration when making any adjustments.

    Reply

Leave a Reply to Larry Paige

Leave a Reply to Larry Paige Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Does an un-confirmed Bitcoin transaction expire?
  • Looting of the Fox: The Story of Sabotage at ShapeShift
  • Decentralization, Scalability, and Fault Tolerance of Bitcoin
  • Stripe will soon accept Bitcoin payments
  • Zynga announces Bitcoin acceptance in game
  • How to import very large sql dump via phpmyadmin
  • How to compare the content of two folders automatically
  • Top 5 reasons to start experimenting with Linux
  • The day our mind became open sourced
  • Mark Shuttleworth wants to turn canonical (ubuntu) into the next Apple Inc.

Categories

  • applications/software (26)
    • browsers (2)
    • development (1)
    • information management (1)
    • Mobility (1)
    • multimedia (5)
    • office suites (2)
    • security (6)
    • servers (6)
    • system (2)
  • audio/video/pics (3)
  • Bitcoin (3)
  • books & literature (1)
  • cms/portals (1)
  • desktop environments (7)
    • gnome (2)
    • kde (5)
  • events/shows (3)
    • interviews (1)
    • people (1)
    • surveys (1)
  • games & gaming (2)
  • general topics (4)
  • guides (112)
    • how to (105)
    • tips (87)
    • tutorials (86)
  • hardware (8)
    • desktop & laptop pc (5)
    • gadgets & mobiles (2)
  • howtoforge (47)
  • internet/web (4)
    • design & development (2)
  • linux and open source blog (49)
  • linux.com (76)
  • linux/unix/os distros (113)
    • debian/ubuntu based (10)
    • mac/osx (2)
    • other distros (3)
  • news (217)
  • open source (8)
    • business & foss (2)
  • other (26)
    • uncategorized (26)
  • Programming (3)
    • PHP (2)
  • quotes & thoughts (10)
  • random stuff (4)
    • cool stuff (3)
    • funny stuff (1)
  • review/preview/tests (7)
  • wordpress/blogging (3)

Archives

  • July 2016
  • April 2016
  • January 2015
  • April 2014
  • January 2014
  • November 2013
  • February 2013
  • November 2012
  • April 2012
  • March 2012
  • January 2012
  • December 2011
  • August 2011
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2006

Recent Posts

  • Does an un-confirmed Bitcoin transaction expire?
  • Looting of the Fox: The Story of Sabotage at ShapeShift
  • Decentralization, Scalability, and Fault Tolerance of Bitcoin
  • Stripe will soon accept Bitcoin payments
  • Zynga announces Bitcoin acceptance in game
  • How to import very large sql dump via phpmyadmin
  • How to compare the content of two folders automatically
  • Top 5 reasons to start experimenting with Linux
  • The day our mind became open sourced
  • Mark Shuttleworth wants to turn canonical (ubuntu) into the next Apple Inc.

Categories

  • applications/software (26)
    • browsers (2)
    • development (1)
    • information management (1)
    • Mobility (1)
    • multimedia (5)
    • office suites (2)
    • security (6)
    • servers (6)
    • system (2)
  • audio/video/pics (3)
  • Bitcoin (3)
  • books & literature (1)
  • cms/portals (1)
  • desktop environments (7)
    • gnome (2)
    • kde (5)
  • events/shows (3)
    • interviews (1)
    • people (1)
    • surveys (1)
  • games & gaming (2)
  • general topics (4)
  • guides (112)
    • how to (105)
    • tips (87)
    • tutorials (86)
  • hardware (8)
    • desktop & laptop pc (5)
    • gadgets & mobiles (2)
  • howtoforge (47)
  • internet/web (4)
    • design & development (2)
  • linux and open source blog (49)
  • linux.com (76)
  • linux/unix/os distros (113)
    • debian/ubuntu based (10)
    • mac/osx (2)
    • other distros (3)
  • news (217)
  • open source (8)
    • business & foss (2)
  • other (26)
    • uncategorized (26)
  • Programming (3)
    • PHP (2)
  • quotes & thoughts (10)
  • random stuff (4)
    • cool stuff (3)
    • funny stuff (1)
  • review/preview/tests (7)
  • wordpress/blogging (3)

Archives

  • July 2016
  • April 2016
  • January 2015
  • April 2014
  • January 2014
  • November 2013
  • February 2013
  • November 2012
  • April 2012
  • March 2012
  • January 2012
  • December 2011
  • August 2011
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2006
Privacy Policy

Est. 2002

linewbie.com serving the linux and open source community since April 09, 2002

CyberChimps WordPress Themes

© Linux and Open Source Blog