|
-
Nov 21st, 2002, 10:55 AM
#1
Thread Starter
Fanatic Member
Sizing an empty list box in ns4.7
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
Code:
<select multiple size="10" name="list2" style="width:150">
<option value=""></option>
</select>
Cheers
-
Nov 21st, 2002, 12:47 PM
#2
Frenzied Member
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"
-
Nov 21st, 2002, 12:50 PM
#3
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.
-
Nov 22nd, 2002, 03:51 AM
#4
Thread Starter
Fanatic Member
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?
Code:
<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>
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|