JAndyEvans
asked on
How do use css to add padding to an ASP.NET dropdownlist control?
I have textboxes that I can pad to make them look like I want, but how to do I pad ASP.NET dropdownlists?
You should just be able to add the CssClass attribute to the drop down and set up the appropriate css in your stylesheets. Have you tried this and had no luck? Can you post the ddl code and css that you have?
you can put the dropdownlists inside a div also with padding
ASKER
No, actually I want to pad the items in the dropdown. Much like you would pad a textbox.
Ah, oh. What you could do would be to add a class to the drop down list (ex. padded-list) and then in your css do this:
.padded-list option {
padding: 4px;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
here is the result
ddl.png
ddl.png