Get rid of those ugly link outlines.

Get rid of those ugly link outlines.

Great web designs are everywhere now. With the explosion of online tutorial sites, blogs and social media there is a ton of information at new designers' fingertips. So with so much new talent out there you need to be able to stand out from the crowd. What makes a good design great for me? It's the little things that matter most. As designers we never seem to have enough time, but taking just a little extra time on details can go a long way in your design. Ugly link outlines are one thing in particular that I see quite a lot, even on some of my own stuff. Here are a few tips on how to get ride of those pesky eyesores

In firefox and other modern browsers it is easy. I simply add this to my css document: a:active, a:focus{outline: 0;}

Alright, so that's cool, but it looks like they are still hanging out in IE. Here is a javascript method I use for getting them to clear out in IE while maintaining usability for tabbed browsing.

$(document).ready(function() {
	$("a").keypress(function() {
			this.blur();
			this.hideFocus = false;
			this.style.outline = null;
	});
$("a").mousedown(function() { this.blur(); this.hideFocus = true; this.style.outline = 'none'; }); });

 

An important note to make is that some users rely on link outlines to navigate a page. Users that have disabilities restricting their use of a mouse rely on the keyboard or voice to navigate a page. Without a link highlight it is difficult for them to identify what link they are on. If you decide to use one of the methods above to remove the outlines just make sure it is necessary before you do.

Write a comment

  • Required fields are marked with *.

If you have trouble reading the code, click on the code itself to generate a new random code.
 
Dennis Figueroa Reply #11 Nov 19, 09
 
Re: hey great work!!! that ugly outlines are that UGLY!!! thanx!!! I´ll take this code!!!
Michael Reply #10 Nov 19, 09
 
Re: You can do this with strait css using the border property and cut out the extra jquery computations.
Steve Reply #9 Nov 19, 09
 
Re: Thanks for the comments guys. @Michael. Straight css methods of removing the outlines do not always work so well with IE from what I recall.

Also I should add into my post that removing outlines can cause usability problems for users that rely on non-mouse forms of navigation. Without the outlines it makes knowing what element they are on very difficult. Remove the outlines wisely!

-Steve
Sukiali Reply #8 Nov 19, 09
 
Re: your work is absolutely awesome, I am too learning web Designing, Can you help me learning new tips & tricks,
Steve Reply #7 Nov 19, 09
 
Re: Thanks Sukiali! My advice to you would be to never stop learning. There are a lot of good design blogs out there, follow them to keep up to date on what's going on in the web, be original and love what you do.

-Steve
Lauren Reply #6 Nov 19, 09
 
Re: Hi, you have a really unique style of designing, really looks nice. Thanks for this tutorial as well. Might see how this looks on my site.
Steve Reply #5 Nov 19, 09
 
Re: Thanks Lauren! Good luck with the site.
Brendan K Pittman Reply #4 Mar 9, 10
 
Dashed Separator lines Helllo,

i LOVE your site, the design is great and has inspired me. I was wondering how to make the dashed lines that separate your columns and "Recent Posts" feeds. It looks really cool and I'd love to know how to do this.

Thanks!
Reply #3 Mar 11, 10
 
@Brendan K Hey Brendan, thank you very much! The dashed lines are created in css with a background image with repeat-y.

So it would look like this

#youDiv{
background: url(/images/dash.png) repeat-y;
}

Hope that helps!
Rob Reply #2 Mar 24, 10
 
Outlines Those outlines shouldn't be removed as they're for accessibility reasons. Instead I suggest styling them accordingly.
Steve Reply #1 Mar 24, 10
 
@Rob Thanks for the comment Rod. See my comment at the bottom of the post. I warn about that very thing.

I agree, and it has been a while since I wrote this post. Although most people prefer looks over usability maybe the correct middle ground solution would be, as you said to style accordingly. Changing the link outline to a color that blends into the background would probably be a safer solution.

Recent Posts

Steve Mullen Interview

Apr 22, 2010

I was recently contacted by a college student and asked to answer a few questions for a class project. I figured since I already had it typed up I would share it on my site....read more

Destin Car Wrap Complete!

Mar 16, 2010

I recently designed my first car wrap for a client. It was a fun project and I was anxious to see the final result. I was a little nervous since I had never designed on before and the design was fairly complex....read more

New Free Desktop Wallpaper

Mar 05, 2010

I do web design everyday all day for a living so it is nice when I get a chance to go outside of the web design box. Before I got into web design I used to just play around in...read more

ITR Photo-shoot

Feb 24, 2010

I am not a photogapher by trade but it is a hobby of mine that I enjoy improving. At my full-time job with Creative State we are wrapping up a web project for In The Raw Sushi...read more

More Posts

New Addition!

Stop Designing in Photoshop. No thanks!

Behold Apple's iPad

Let it Snow Wallpaper: Download

Text layout in Photoshop using shape layers.

Powered by modx

Web Development: How I get it done

New Desktop Wallpaper

15 Inspirational Home offices

Color Profiles in Modern Browsers

Big Update!

Free Texture Pack #1

Run Your Old Add-Ons in FireFox 3.5

Downtown Tulsa - A Photographic Tour

Souled Out Website Launches!

Get rid of those ugly link outlines.

New Website Launched!



Need a website?

I am currently available to do freelance projects. However I am not available to do freelance work for other agencies. If you would like to consider me for your next project please contact me and tell me a little about your project. If you still need a little persuading take a look at my work.

Twitter Feed