PDA

View Full Version : CSS able to render disabled button?



gorilla1
06-20-2002, 10:42 PM
Is there a way using CSS that I can specify the look of a button when it goes disabled?

G

jkd
06-20-2002, 11:53 PM
input[disabled], textarea[disabled], button[disabled] {
/* my CSS */
}

I believe would style the disabled form elements in any browser that supports any real amount of CSS2, which is of course not IE, but rather Gecko and Opera 6. :)

I would assume by disabling the element in JS, the attribute "disabled" will be updated to reflect that, though I don't know for sure.

gorilla1
06-21-2002, 01:59 AM
Wow. Thanks JCJ and JKD.

G