By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,423 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

DropdownList.Enabled = False and Font Color?

P: n/a
Hello,

I need to be able to modify the font color of the text displayed within a
disabled DropdownList (i.e. <select>). I have tried adding the following to
my css:

select[disabled]{
color:red;
}

The above renders "correctly" on the latest version of Firefox, but not in
IE 6 or 7. When I say "correctly", I mean that any disabled select elements
(i.e. <select disabled="disabled">) are disabled on the browser window, but
the font color is correctly displayed as Red in Firefox (but not IE).

I have tried several different variations of this to try and work with IE,
but no luck. My next course of action is to try to create a style that will
mimic the "disabled" look of a select element, but I have concerns about
preventing a user from changing the value in the dropdown (select elements
don't support the readonly attribute).

Anyone come across this situation? Any ideas?
Jun 12 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.