Skip to content Skip to sidebar Skip to footer

Border Bottom For Select Box Option Not Working On Chrome

I would like to underline the disabled options on a select box. See my code, CODE This code works fine in firefox. Not working in chrome. How to make work this in chrome too ? JS

Solution 1:

According to this Article from ElectricToolbox , border it isn't a property that you can style in select/option/optgroup when using Chrome.

Here is the properties you can style:

  • font-style
  • font-weight
  • color
  • background-color
  • font-family
  • font-size
  • padding

Note : that some of these properties above only work for one the elements, for example, padding only will work in select

If you want to customize selects you may want to try some of the selects plugins out here, like :


Solution 2:

It looks like you can only use borders for option elements in Firefox as per this.

You would need to create a custom drop down list control to achieve a universal solution. Check out Custom Drop-Down List Styling for some examples.


Post a Comment for "Border Bottom For Select Box Option Not Working On Chrome"