solarisuser Posted May 4, 2007 Share Posted May 4, 2007 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 More sharing options...
fenway Posted May 4, 2007 Share Posted May 4, 2007 You can't style option tags, but you should be able to use any css on the select tag itself. Link to comment Share on other sites More sharing options...
solarisuser Posted May 4, 2007 Author Share Posted May 4, 2007 I've been dabbling with CSS lately, and other than styling, could I use CSS to limit the amount of characters? Link to comment Share on other sites More sharing options...
fenway Posted May 5, 2007 Share Posted May 5, 2007 Nope. Link to comment Share on other sites More sharing options...
Recommended Posts