3

The default border color for active input tags in Google chrome is yellow, how do i disable it? alt text

How do i change the color in css?

Sridarshan
  • 1,268
  • 3
  • 13
  • 15

2 Answers2

7

It's the CSS outline property - try outline:none; on the form fields.

Dave Everitt
  • 17,193
  • 6
  • 67
  • 97
0

You can do it with two css properties: border or outline.

.bordered
{
  border:1px solid your_color !important;
}

or

.bordered
{
outline:1px green solid !important;
}

This is because most of browsers has own css rules which you need to override saying to browser my rule is !important.

--Edit

You can also press Ctrl + Shift + I to display developer tools for Chrome and find css which makes problems.

r.piesnikowski
  • 2,911
  • 1
  • 26
  • 32