Welcome to WebmasterWorld Guest from 54.196.244.45

Forum Moderators: not2easy

Message Too Old, No Replies

Input disabled color

Is it possible to change?

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

Preferred Member

10+ Year Member

joined:Jan 4, 2003
posts:365
votes: 5


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)

Administrator from JP 

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

joined:Oct 12, 2000
posts:14483
votes: 49


Like this?

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

Preferred Member

10+ Year Member

joined:Jan 4, 2003
posts:365
votes: 5


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)

Administrator from JP 

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

joined:Oct 12, 2000
posts:14483
votes: 49


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

Preferred Member

10+ Year Member

joined:Jan 4, 2003
posts:365
votes: 5


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)

Administrator from JP 

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

joined:Oct 12, 2000
posts:14483
votes: 49


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...

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members