Drop Lists

liunx

Guest
I have this code for a droplist/ I've tested it and it works<br />
<br />
Please choose a page:<br />
<OPTION SELECTED>Home<br />
<OPTION>TEXT<br />
<OPTION>TEXT<br />
<OPTION>TEXT<br />
</SELECT><br />
<br />
But how do I change the length so it doesnt go right across the page?<!--content-->for one you can't select the length. it will go as far as the longest text in it. also you should close your option tags.<!--content-->abbreviate your options<!--content-->how do you mean abbreviate? i dont understand<br />
<br />
<OPTION>TEXT</OPTION><!--content-->abreviate -> abrev.<!--content-->he means make the text shorter<!--content-->You can actually change the width of a form dropdown in IE5+/NS6+. It would look like this.<br />
<br />
<select name="whatever" size="1" style="width: 150px;"><br />
<option>This is some text.</option><br />
<option>Some other text.</option><br />
</select><br />
<br />
Notice the style attribute within the <select> tag. Change the value of the width as you need to.<br />
<br />
Any text which is longer than the width you specify will get cut off. There is no way to make the text wrap within the dropdown.<!--content-->OK thanks I'll try that<!--content-->
 
Back
Top