Override Chrome's Automatic Border Around Active Fields Using CSS

by Bill Beckelman 15. September 2008 10:49

There might be a time when you don't want Chrome's automatic border around active fields or you want to change its color or something. Its pretty easy to change using CSS if you need to.

Demo

To remove the border for all fields you can use the following:

*:focus {outline: none;}

To remove the border for select fields just apply this class to the input fields you want:

.nohighlight:focus
{
    outline:none;
}

You can of course change the border as you desire as well:

.changeborder:focus
{
    outline:Blue Solid 4px;

Hope this helps someone down the road.

 

kick it on DotNetKicks.com      

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Chrome | CSS

Comments

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.4.5.7
Theme by Mads Kristensen

About Me

I live and work in Salt Lake City, Utah. My background is in aviation. I have a degree in Aeronautical Science from Embry-Riddle Aeronautical University in Prescott, AZ. I have worked as a commercial airline pilot and most recently as a technical advisor for a charter airline.

Warning Sign