views:

438

answers:

2

Is there a way to disable the colored shadow generated by Webkit browsers when a form element receives focus? It's yellow in Chrome and blue in Safari, and gets in the way of any custom focus styles I try to implement.

+5  A: 

Try this:

input:focus {
    outline: none;
}
Crozin
Worked perfectly. Thanks!
derekerdmann
+1  A: 

You can try outline: none but please note that this is generally not really desirable for usability reasons. Always keep Jakob Nielsen's "Law of the Web User Experience" in mind:

Users spend most of their time on other websites.

This means that they form their expectations for your site based on what's commonly done on most other sites. If you deviate, your site will be harder to use and users will leave.

RegDwight