Re: <select> elements are the last of the system widgets to require hacky styling

On 11/1/12 4:17 AM, Markus Ernst wrote:
> One very basic issue about hackiness in styling the select element is
> that the following CSS:
>
> input[type=text], select {
>    width:10em;
>    border:2px solid red;
> }
>
> will result in different widths for the text and select boxes. This is
> totally unintuitive and annoying.

That's because the select uses border-box box-sizing, right?  Simply 
resetting the box-sizing so they match will fix that issue, I'd think.

-Boris

Received on Thursday, 1 November 2012 15:03:52 UTC