This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes how to fix width in dropdown box in html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to fix width in dropdown box in html" Watch "how to fix width in dropdown box in html" New topic
Author

how to fix width in dropdown box in html

Rajesh Veluchamy
Ranch Hand

Joined: Jan 15, 2008
Posts: 47
using size in <select> </select> we increase the height. but i want to fix the width. Is that possible ?

my code is






i want a fixed width say 100 or 200, is there any option


-Rajesh.V<br /> Software Consultant
Satish Chilukuri
Ranch Hand

Joined: Jun 23, 2005
Posts: 266
You can use the CSS width property for that.
 
jQuery in Action, 3rd edition
 
subject: how to fix width in dropdown box in html
 
It's not a secret anymore!