• Welcome to Valhalla Legends Archive.
 

SELECT width

Started by Grok, January 25, 2005, 04:23 PM

Previous topic - Next topic

Grok

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>

MyndFyre

It *should* work this way:

<select name="groups" style="width: 100%;">
...
</select>
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

quasi-modo

#2
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.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle


Banana fanna fo fanna

I've found that certain browsers will ignore the CSS on select boxes. I've found that padding with &nbsp;'s works too.

Grok

Thanks MyndFyre, exactly what I needed.

MyndFyre

QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

quasi-modo

WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

R.a.B.B.i.T

I got mine from Google, blame them!

quasi-modo

WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle