After doing some research, I don't think it's possible to control option
's width without javascript. Its width depends on browser implementation.
There isn't a way to control this width in HTML standards.
http://www.w3.org/TR/html-markup/option.html#option
And support for CSS on form controls is rather weak.
This style is useless. It doesn't control option at all. If options are all short, then options' width are the same as select
even you set width to 100px
. If any option
is wider than select
, then options' width are the same as the widest option
. (at least in Chrome)
#category option {
width:173px; // not works at all
}