+ Reply to Thread
Results 1 to 4 of 4

Thread: selectbox background color

  1. #1
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    selectbox background color



    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 by galaxyAbstractor; 08-25-2009 at 06:04 AM.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: selectbox background color

    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.

  3. #3
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: selectbox background color

    Quote Originally Posted by misson View Post
    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

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: selectbox background color

    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.

+ Reply to Thread

Similar Threads

  1. help!!!!!
    By lordsofvine in forum Programming Help
    Replies: 1
    Last Post: 10-15-2008, 05:00 AM
  2. Tutorial como crear un template en joomla
    By xboxadictions in forum Tutoriales
    Replies: 21
    Last Post: 09-30-2008, 11:27 AM
  3. can anyone convert a CSS into an IPB skin for me?
    By leafypiggy in forum Programming Help
    Replies: 0
    Last Post: 05-06-2008, 07:41 PM
  4. Does music effect Web Design
    By thezone1 in forum Crossfire
    Replies: 11
    Last Post: 03-20-2008, 12:47 PM
  5. how do u change background color??/
    By Not_My_Problem in forum Graphics & Webdesign
    Replies: 5
    Last Post: 01-16-2008, 10:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers