Link to home
Start Free TrialLog in
Avatar of JessyEzzy
JessyEzzy

asked on

How Can I apply a css style to a dropdownlist?

I am applying a style for my form fields here it is:

cella_form {
font-size: 10px;
border: 1px;
border-color: 4BBA5C;
border-style: solid;
}

I have set the Css Class property for all the controls with the style name,it's showing fine for textboxes but dropdownlists are not affected, I want a solid green border to be shown.
I am using ASP.NET controls.
Can anybody tell me how to apply the style for the dropdownlist?
Thanks.
Avatar of BrianPap22
BrianPap22

A link to your actual page would be nice.

And you should have a period before the class name in the style sheet, eg ".cella_form {"
Furthermore, "#4BBA5C", not "4BBA5C".
Avatar of seanpowell
>>Can anybody tell me how to apply the style for the dropdownlist?

Yes, you can't - at least in IE :-)
It's only supported in NS7 and Mozilla
SOLUTION
Avatar of enscryptor
enscryptor

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm sure I've heard that before somewhere :-)
> I'm sure I've heard that before somewhere :-)

sean I noticed your comment (above), I just wanted to add that you CAN add the font-size style for IE, and the border only for option in Mozilla. Just being more specific.. not trying to steal anyone's thunder here:)
That's okay DD, I don't have any thunder to steal - I'm too full of sunshine.
Avatar of JessyEzzy

ASKER

Here is a link to how the form looks like:

http://JessyEzzy.europe.webmatrixhosting.net/form.aspx
So what would you like to know?
Actually after what you said about it's not being supported in IE it seems that I can't do anything to it, even though the ones who's going to use the form are using IE, so there is nothing i need to know.
Thanks.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial