Does anyone know how to set the size of a list box in netscape 4.7?
I'm currently using the style property which isn't supported by NS4
CheersCode:<select multiple size="10" name="list2" style="width:150">
<option value=""></option>
</select>
Printable View
Does anyone know how to set the size of a list box in netscape 4.7?
I'm currently using the style property which isn't supported by NS4
CheersCode:<select multiple size="10" name="list2" style="width:150">
<option value=""></option>
</select>
I'm not too sure if you can, but I just wanted to say that your style is a bit wrong. You must include a unit. It's invalid CSS without, and conforming browsers will ignore it completely:
Code:style="width:150px"
That having been said, NS4.7 might support it.... if it still doesn't work, try using CSS or a style class at the top of the HTML doc. I know for a fact NS4.7 supports that.
Rick & techgnome,
Thanks for your tips, I've put the unit in as advised and added a style, which works with IE5.5, NS6.1, NS6.2, but Not NS4.7.
TechGnome, you sounded pretty confident that style sheets work with NS4.7. Can you see where I'm going wrong?
CheersCode:<html>
<head>
<style>
.SizeLstBox{Width:300px; Height:300px}
</style>
</head>
<body>
<form name="combo_box">
<table><tr><td>
<select multiple size="10" name="list2" class="SizeLstBox">
<option value=""></option>
</select>
</td></tr></table>
</form>
</body>
</html>