Remove Safari’s input focus outer glow

Share/Save

It’s actually quiet easy to remove that outer glow when you focus an input element on Safari, a simple outline: none in your CSS code is all that you need.

Check the following examples and screen captures to see how it works:

Regular form with the blue outer glow

safari-glow

<form>
  <input type="text" name="test" id="test" size="20" />
  <input type="submit" value="Submit" name="submit" />
</form>

The same form without the outer glow

safari-no-glow

<style media="screen">
  #test { outline: none; }
</style>

....

<form>
  <input type="text" name="test" id="test" size="20" />
  <input type="submit" value="Submit" name="submit" />
</form>
Share/Save

7 Responses to “Remove Safari’s input focus outer glow”

  1. Thankyou! I just wondered here through Google and this helped me out :)

  2. This is great! Thanks mate!

  3. thanx for this….

  4. Really easy… Thanks a lot mate!

  5. Although the title of this article is for Safari, I would like to point out that this doesn’t appear to work on Firefox on OS X. I wonder if there is a solution for this.

  6. Adam

    add the following to your css style sheet too:

    :focus { -moz-outline-style: none; }

    it will solve the problem in Firefox for you :)

  7. Thank you Gay Higgins for your collaboration.

Leave a Reply

* Required fields.