homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Input disabled color
Is it possible to change?

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

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)

Like this?

input, select, textarea {
background: #DDDDDD;
color: #222222;}


 1:46 pm on Jan 19, 2003 (gmt 0)

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)

Then how about assigning a class called 'disabled' and give it the desired coloration?


 2:02 pm on Jan 19, 2003 (gmt 0)

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)

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved