Why does my <select> show white and not black in IE9?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Why does my <select> show white and not black in IE9?

Post by simonmlewis »

Code: Select all

.blackselect
{
background-color: #000000;
color: #ffffff;
border: 1px solid #999999;
}
I need to set the background of this <select> to be all black, with just white text.
The CSS does it perfect in Firefox, but not in IE.

How do you do it properly for IE?

Simon
Attachments
Dropdown menu in IE9
Dropdown menu in IE9
ss.jpg (19.08 KiB) Viewed 2799 times
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Why does my <select> show white and not black in IE9?

Post by califdon »

Internet Explorer has always had a few things that don't behave according to the standards.
See http://stackoverflow.com/questions/3800 ... ct-element
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Why does my <select> show white and not black in IE9?

Post by simonmlewis »

Heavens, all these years and IE has never let you just set the overall background color of it.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply