How to change the color of disabled html controls in IE8 using css

advertisements

I'm trying to change the color of input controls when they are disabled using the following css.

input[disabled='disabled']{
  color: #666;
}

This works in most browsers, but not IE. I'm able to change any of the other style properties such as background-color, border-color, etc... just not color. Can anyone explain this?


Unfortunately if you use the disabled attribute, no matter what you try IE will just default the color of the text to Grey, with a weird white shadow...thing... yet all other styles will still work. :-/