Jump to content

pick-list size


y h

Recommended Posts

Hi, I wanted to know if there is a way to make the pick-list size corresponding to the size of the biggest word or phrase in the list.

PS: I mean not only when I select the biggest word but even when none of the choices in the list is selected.

Any advice is highly appreciated. Thanks in advance:)

Link to comment
Share on other sites

Try this file...

<!DOCTYPE html><html><head><meta charset="utf-8"/><title>select</title><style>body{ background-color: green; color: maroon; margin-left: 15px;}</style></head><body><form><select name="make" >  <option value="volvo">Volvo</option>  <option value="saab">Saab</option>  <option value="mercedes">Mercedes</option>  <option value="audi">Audi</option>  <option value="stud">Studibaker Autoworks 123</option></select></form></body></html>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...