Shivanand
Shivanand

Reputation: 11909

How to change font color of disabled input in Firefox

When I disable input elements the text is taking the font color: #000000 in Firefox. This is not happening in IE. Please check the below page in IE and Firefox. Let me know how to give it a gray look as in IE.
test

Upvotes: 6

Views: 5571

Answers (2)

Diodeus - James MacFarlane
Diodeus - James MacFarlane

Reputation: 114437

Reenable it, change the color, disable it again. It will only take .001 seconds.

Upvotes: -1

ng.mangine
ng.mangine

Reputation: 3007

Different browsers style disabled elements differently. Here is how you can control the style of disabled elements in Firefox.

[disabled] {
  color:#ff0000;
  background-color:#00ff00;
}

Upvotes: 6

Related Questions