Welcome to WebmasterWorld Guest from 54.147.10.72

Forum Moderators: not2easy

Message Too Old, No Replies

Input disabled color

Is it possible to change?

     

Moby_Dim

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.

bill

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;}

Moby_Dim

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.

bill

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?

Moby_Dim

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.

bill

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

Hot Threads This Week

Hot Threads This Month