How to fix that in firefox?
I'm using:
Code:select {font-family:verdana,arial,helvetica; font-size:10px; background-color: #111; color:#aaa;}
Which version of Firefox and which OS? Always describe the software environment.
Setting background-color works for me with FF 1.5-3.5 on OS X 10.4. Keep in mind that form controls are usually OS native widgets, so if a particular browser doesn't apply styling to a form control, there's usually nothing you can do about it (aside from contributing a patch for the browser source).
Also, don't use 'px' for font sizes; use 'em' or '%'. The 'px' unit isn't flexible enough. It will either be too small on high resolution screens or too large on low resolution screens, and doesn't let the user change the font size (very important for people with bad vision).
Last edited by misson; 08-25-2009 at 08:05 PM.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.
The background is correct on FF3.5 on Vista, so there's probably something about the combobox control on Windows 7. Sounds like it's worth filing a bug report of trivial severity--just make sure nobody else has already filed the bug. Be sure to include a minimal test case in the bug report.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.