|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Combo box
I want to find out wether you can set the length of a combo box instead of it automatically setting the length to the size of the longest string.
|
|
#2
|
|||
|
|||
|
RE: Combo box
Yes you can.. But you have to use style sheets for doing this. Here is a sample code.. I have set only the width.
Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.fields {
width: 200px;
}
-->
</style>
</head>
<body>
<select name="select" class="fields">
<option value="US" selected>United States</option>
<option value="LK">Sri Lanka</option>
</select>
</body>
</html>
|
|
#3
|
|||
|
|||
|
RE: Combo box
Awesome thanks again nazly you da man!!
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Combo box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|