Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sizing List boxes 1

Status
Not open for further replies.

shelds

Programmer
Mar 24, 2005
5
GB
Im using dropdown lists, they seem to size themselves depending on the length of the options. Is there a way i can get them to a specific length size, the only option i see is height which i dont want. Can anyone help me out with this? Help on this issue would be greatly appreciated.
 
Use CSS
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
.menu_width {
	width: 300px;
}
-->
</style>
</head>

<body>
<form name="form1" method="post" action="">
  <select name="select" class="menu_width">
    <option value="Item 1">Item1</option>
    <option value="Item 2">Item2</option>
  </select>
</form>
</body>
</html>

Cheech

[Peace][Pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top