tags:

views:

2254

answers:

2

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

+4  A: 

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;
}
ng.mangine
I tried your style, it is taking bg color green and not font color
Shivanand
@Shivanand: works if you write it with !important: color:#ff0000 !important; @ng.mangine: good trick!
PhiLho
how the F do i do this in IE8?
Andrew
A: 

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

Diodeus