You are here: irt.org | FAQ | JavaScript | Form | 1 | Q858 [ previous next ]
In Microsoft Internet Explorer 4+ this can be done using:
<script language="JavaScript"><!-- document.formName.selectName.style.pixelWidth = 100; //--></script>
This level of control is not possible in Netscape Navigator. You can try one of several alternatives:
You can only increase the width by padding out an entry with multiple ' '.
You could have a dummy entry with '-------------' characters.
Or you can try:
<form> <small> <select> <option>ABC123 <option>123ABC </select> </small> <font size="-2"> <select> <option>ABC123 <option>123ABC </select> </font> <font size="+2"> <select> <option>ABC123 <option>123ABC </select> </font> <font size="+4"> <select> <option>ABC123 <option>123ABC </select> </font> </form>