Jump to content

Size of <select> dropdown menu


solarisuser

Recommended Posts

Hi All,

 

Is there a way to limit the size of a <select> dropdown menu?

 

An example were I'd like to have the first <option> be display up to 10 characters, but of course the value should remain the entire length.

 

Thanks for any help!

 

<html>
<body>

<form action="">
<select name="cars">
  <option value="volvo extra long blah blah">Volvo Extra Long Blah Blah</option>
  <option value="saab">Saab</option>
  <option value="fiat">Fiat</option>
  <option value="audi">Audi</option>
</select>
</form>

</body>
</html>

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.