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?

1

2 Answers 2

7

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

1
  • You're welcome. It will also remove the dotted outline on links. Jan 23, 2011 at 13:41
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.