Welcome to WebmasterWorld Guest from 54.145.246.183

Forum Moderators: not2easy

Input disabled color

Is it possible to change?

   
12:32 pm on Jan 19, 2003 (gmt 0)

10+ Year Member



Hi all :)!
Does anyone knows is it possible to change default (system) color in disabled input element for MSIE browser using CSS (NS is OK here)?
Thanx a lot.
1:17 pm on Jan 19, 2003 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Like this?

input, select, textarea {
background: #DDDDDD;
color: #222222;}
1:46 pm on Jan 19, 2003 (gmt 0)

10+ Year Member



No. You see - the text color in disabled input (text) field is the same regardless the COLOR attr. value in CSS.
1:51 pm on Jan 19, 2003 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Then how about assigning a class called 'disabled' and give it the desired coloration?
2:02 pm on Jan 19, 2003 (gmt 0)

10+ Year Member



The problem is more complex. CSS class and <input name="txt1" type="text" disabled....> are different things.
2:25 pm on Jan 19, 2003 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Sorry, I was thinking along other lines (probably the wrong ones ;) ) . According to the W3C [w3.org]:
How disabled elements are rendered depends on the user agent.

I didn't see a way to change the disabled style the way you seem to be asking...

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month