disabled form field text colour

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
me666
Forum Commoner
Posts: 87
Joined: Wed Oct 08, 2008 5:04 pm

disabled form field text colour

Post by me666 »

Hi all, is there any way, with CSS or something similar, to change the text colour in a disabled input field in a html form. Any ideas would be great.
Thanks :D
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: disabled form field text colour

Post by social_experiment »

If the element has a unique id you can target it with CSS.
[text]#uniqueID {
color: #fff;
}
[/text]
Could you please paste the code of the html form and indicate the disable field.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply