PDA

View Full Version : [CLOSED] Combobox Field Background Color



cwolcott
May 04, 2012, 7:12 PM
I am trying to change the background color of the text field for a combobox to a different color. I tried the attribute


FieldStyle="background-color: #FFFFBB"

The color shows, but then gets set back to white immediately.

Aurelio
May 04, 2012, 10:00 PM
HI cwolcott, i have the same problem and resolve type this (if that's what you wanted to get):



<ext:ComboBox ID="ComboBox1" runat="server" FieldStyle="background: #FFFFBB">


Thanks
Aurelio

Daniil
May 04, 2012, 10:47 PM
Hi all,

Yes, the following

FieldStyle="background-color: #FFFFBB"
doesn't override the "background-image" CSS rule.

The Aurelio's suggestion is the one of possible solutions.

Another one is:

FieldStyle="background-color: red; background-image: none;"

cwolcott
May 05, 2012, 12:09 AM
That works. Please close the thread.