selectbox background color

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Capture-39.png


How to fix that in firefox?

I'm using:

Code:
select    {font-family:verdana,arial,helvetica; font-size:10px; background-color: #111; color:#aaa;}
 
Last edited:

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
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:

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
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).


FF3.5 on windows 7
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
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.
 
Top