Forum Moderators: not2easy

Message Too Old, No Replies

increase the row size of Select box

increase the row size of Select box

         

ravi

12:57 pm on Jul 31, 2008 (gmt 0)

10+ Year Member



hi,

I would like to increase the row-size of the combo box.

When i give

<select name="sample" size=5>
<option value="test">test</option>
<option value="test1">test1</option>

</select>

it is only increasing the column size.

When i give the letters too large the size of the combo box is increased.

Was there any way to increase the row size of combo box without giving too many letters..

thanks
ravi

D_Blackwell

4:50 pm on Jul 31, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about just specifying a CSS width for <select>?

select {
width: 15em;
}

<div style="margin-top: 7em;">
<select name="sample">
<option value="test">test</option>
<option value="test1111111">test1111111</option>
</select>
</div>