Current Article
Industry Buzz
Social Networking
Featured Articles
Browse Content >
Back to Home

How to Remove Chrome's Orange Outline

Bill Konrad
Frustrated with Chrome's orange outline marring your new web project's looks? So were we. That is, until we found a quick solution that removed it for good.

The Issue

You downloaded Chrome, Google's new web browser, to take it for a spin and see what all the fuss was about. Looks great, performs like a Ferrari. But what's with that orange outline on every active element?

You might recognize the outline from browsing around in Safari and having witnessed a similar blue outline. Well, fortunately for you, we are going to kill two birds with one stone.

The One Line Solution

This problem can be solved with a simple CSS selector. Here it is.

*:focus
{
    outline: none;
}
How This Works

The CSS itself is short, and simple, but quite powerful. It essentially says, "When any element is in focus, ensure that no outline is drawn around that element."

A Word of Warning

This technique will affect EVERY element in your site. If you wish to maintain an outline for any of your existing elements when in focus, be sure to add an outline to that selector.

We hope that you found this quick tip useful!

Share Article

User Comments

Gravatar
Chris Demarco
11/2/2008
Thanks for the great tip, it was bugging me as well. Even some of the big companies on the web haven't fixed this issue, I'm going to go and implement it now...


Thx again!
Gravatar
WebMasterFlex
11/2/2008
Wow. That was way easier than I would have expected. Great 'snippet' though. Thanks!
Gravatar
Bill Konrad
11/2/2008
Glad to hear this helped out. It drove us insane to see our designer's hard work disappear behind flickering orange outlines.

More great tutorials to come!
Gravatar
Kristaps Ronka
11/6/2008
great tutorial. thanks for the info!
Gravatar
Ryan Wiesjahn
2/26/2009
Thanks! This really helps a lot!
Gravatar
kL
3/8/2009
People, please don't do that! It breaks keyboard navigation!!!

If you absolutely can't stand default outline, provide your own instead of leaving keyboarders in the dark.
Gravatar
normren
4/23/2009
thanks!
Gravatar
vipul
2/26/2010
Thank for help me
Gravatar
Levi
6/24/2010
Thank You!
Gravatar
Brahma
7/26/2010
This is verry use full....
Gravatar
Brahma
7/26/2010
This is verry use full....
Add a Comment

Name

Email Address

1 + 1 = ?

Comment