does anyone know how to set the width of a <select> box, including the drop-down button? For example,
creates this,Code:select{ width: 150px; }
but I want this
thanks!
does anyone know how to set the width of a <select> box, including the drop-down button? For example,
creates this,Code:select{ width: 150px; }
but I want this
thanks!
Last edited by traq; 11-23-2010 at 03:31 AM.
What browser are you using? These have the same width on a Mac and a Windows in IE, Chrome, FF, and Opera.
Code:<style type="text/css"> #box { width: 200px; height: 5px; background: blue; } select { width: 200px; } </style> <div id="box"></div> <select> <option>SELECT</option> </select>
Jeremy | jfein.net
traq (11-23-2010)
hmmm... crap. I must've made a typo somewhere in my original code. it works as expected now, though my original markup doesn't. debug time!
thanks
Bookmarks