daniel
daniel

Reputation: 809

How to not show yellow focus on form (input or textarea) just like on Facebook

I see that the form elements on Facebook are not highlighted when in focus. how can I do that?

With chrome for example if I click on this textarea it becomes orange or yellow.

Upvotes: 0

Views: 373

Answers (3)

tahdhaze09
tahdhaze09

Reputation: 2213

.textArea:focus
{
background-color:#FFF;
}

Apply this class to your textareas. Or apply them to all your areas at once:

input:focus
    {
    background-color:#FFF;
    }

Upvotes: 0

animuson
animuson

Reputation: 54729

Simply change some styles for your form elements and the browser's defaults will not take effect.

Upvotes: 0

casraf
casraf

Reputation: 21694

input:focus{outline:0;}

Upvotes: 2

Related Questions