I've never gotten a select box to fill the width of a table cell. Someone tell me how?
<table border="1">
<tr><th width="200">Groups</th></tr>
<tr><th>
<select name="groups" size="20">
<option>aaa</option>
<option>bbb</option>
<option>ccc</option>
<option>ddd</option>
<option>eee</option>
<option>fff</option>
</select>
</th></tr>
</table>
It *should* work this way:
<select name="groups" style="width: 100%;">
...
</select>
You can also use css auto width and stretch the thing out but that would be a bit redundant.
ps: the css above will work. I have used code like that before.
http://www.w3.org/MarkUp/html3/menus.html
I've found that certain browsers will ignore the CSS on select boxes. I've found that padding with 's works too.
Thanks MyndFyre, exactly what I needed.
Quote from: R.a.B.B.i.T on January 25, 2005, 09:33 PM
http://www.w3.org/MarkUp/html3/menus.html
way to link the outdated stuff.
http://www.w3.org/TR/html4/interact/forms.html#edef-SELECT
I got mine from Google, blame them!
Quote from: rabbit on January 29, 2005, 05:58 PM
I got mine from Google, blame them!
Damn google >:(