views:

37

answers:

3

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.

A: 

Add a border-color to your declaration.

option
{
    border-width: 1px;
    border-style: solid;
    border-color: #000;
}
Greg B
No dice, do you think it could have something to do with the asp.net ListBox?
Abe Miessler
@Abe, It doesn't The ASP ListBox renders out to standard HTML. So you are dealing with the rendering of that HTML in each browser
Greg B
+1  A: 

Maybe this way it would work?!

border: 1px solid black;

Never had problems with this, could be something else , parent elements and so on...

zarko.susnjar
Hmm, didn't work. I'm begining to suspect that the asp.net ListBox might be doing something weird?
Abe Miessler
Then check your code in Firebug first, usually you'd see something overriding your CSS, after that you can try isolation of that little piece of HTML, and last turn on IE's debugger, last because to me and my colleagues usually crashes IE and/or entire OS.
zarko.susnjar
Ok i looked at it in firebug and Develop Tools. In developer tools it doesnt look like the style is even being found for the option tag. Firebug finds the correct styles. When I look at the source for the page the CSS is in there though. I also noticed a `border-collapse: collapse` style is being applied, not sure if that makes a difference.
Abe Miessler
+1  A: 
josh3736
Bummer, thanks for the info.
Abe Miessler