Right now I am using the following CSS:
option
{
border-width: 1px;
border-style: solid;
}
Which works fine in Firefox but not in IE. I’m not sure if it makes a difference but the option tags are generated by an ASP.NET ListBox control.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately, the styling of
optionelements is supported to different degrees by different browsers. Firefox is the only browser which allows you to add a border aroundoptions – IE and Chrome won’t show a border.Here’s an overview of what styles different browsers support. The only styling you can reliably apply is background and foreground color.