Get rid of Safari’s blue input outer glow once and for all

When you’re building web interfaces or just websites you always need to do cross-platform browser testing. As we saw, inputs inherits different styles from browsers and you need to style them. In this article i will show you how simple is to remove Safari’s glowing blue outline.

The normal state of our input looks like this:

safari-blue-outer-glow-state

Please notice the effect that appears on input focus(we’re talking about Mac OS X browser-Safari):

safari-blue-outer-glow-state2

To remove this annoying input effect we just need to add one css line and it will disappear:

input:focus
{
  outline: none;
}

safari-blue-outer-glow-state3

There you go! Simple but very efficient.

If you enjoyed this article, you might also like:

Written by Catalin Rosu

Catalin Rosu, a.k.a Red, is a passionate web designer and developer who loves to be creative and enjoys CSS techniques. Stay tuned for latest updates, subscribe to RSS and follow him on Twitter.

4 Responses to “Get rid of Safari’s blue input outer glow once and for all”

  1. Steve says:

    i am doing a website for a client and have a spry collapsible panel which has the same blue focus line around the ‘focussed panel’ in Safari. As this is not an input field what css would i use to remove it? Any help appreciated

  2. Red says:

    Generally “outline:none;” to a focused element removes the blue stroke, not only for an input but the input case is the most encountered.

  3. [...] you focus (:focus) on an input element, perhaps you have noticed that Safari adds a blue border around it (and Chrome, a yellow [...]

  4. sukha says:

    amazing mind blowing ……………………..

    too long time m find this type of glow aw-round outside

Leave a Reply