Valhalla Legends Forums Archive | Web Development | SELECT width

AuthorMessageTime
Grok
I've never gotten a select box to fill the width of a table cell.  Someone tell me how?

[code]    <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>
[/code]
January 25, 2005, 10:23 PM
Myndfyr
It *should* work this way:
[code]
<select name="groups" style="width: 100%;">
...
</select>
[/code]
January 25, 2005, 10:55 PM
peofeoknight
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.
January 26, 2005, 2:41 AM
R.a.B.B.i.T
http://www.w3.org/MarkUp/html3/menus.html
January 26, 2005, 3:33 AM
St0rm.iD
I've found that certain browsers will ignore the CSS on select boxes. I've found that padding with &nbsp;'s works too.
January 26, 2005, 3:56 AM
Grok
Thanks MyndFyre, exactly what I needed.
January 26, 2005, 3:54 PM
Myndfyr
[quote author=Grok link=topic=10308.msg96760#msg96760 date=1106754869]
Thanks MyndFyre, exactly what I needed.
[/quote]
<3
January 27, 2005, 4:48 AM
peofeoknight
[quote author=R.a.B.B.i.T link=topic=10308.msg96694#msg96694 date=1106710432]
http://www.w3.org/MarkUp/html3/menus.html
[/quote] way to link the outdated stuff.
http://www.w3.org/TR/html4/interact/forms.html#edef-SELECT
January 27, 2005, 12:08 PM
R.a.B.B.i.T
I got mine from Google, blame them!
January 29, 2005, 11:58 PM
peofeoknight
[quote author=rabbit link=topic=10308.msg97333#msg97333 date=1107043130]
I got mine from Google, blame them!
[/quote] Damn google  >:(
January 30, 2005, 5:12 AM

Search