can css make a select box a certain length?..
thanx
Printable View
can css make a select box a certain length?..
thanx
<select size="4" style="width:150px;">
<option>Option 1
<option>Option 2
<option>Option 3
</select>
Doesn't work in Netscape though.
a workaround, though not effective is setting the font size.
i couldn't get the select box to change at all in netscape...even by changing the font-size.
Quote:
Originally posted by creole
Doesn't work in Netscape though.
i was actually referring to lynlimz font size suggestion... :)
Did you do it with the <font> tag or CSS?Quote:
Originally posted by cow
i was actually referring to lynlimz font size suggestion... :)
CSS works.
both.Quote:
Originally posted by duckie
Did you do it with the <font> tag or CSS?
CSS works.
css doesn't work in netscape 4.7, but the <font> tag method does.
the <font> tag method doesn't work in ie, but the css does.
here is the code is used:
and the results:Code:<html>
<head>
<style>
.abc {width: 100%; font-size: 40px; font-family: Arial;}
</style>
</head>
<body>
<table border="0" width="300" height="300" cellspacing="0" cellpadding="10">
<tr><td align="center" valign="middle">
<form>
<select style="font-size: 30px; font-family: serif;">
<option>23541423
<option>42345235
</select>
<br><br>
<select class="abc">
<option>23541423
<option>42345235
</select>
<br><br>
<font size="6">
<select>
<option>23541423
<option>42345235
</select>
</font>
</form>
</td></tr>
</table>
</body>
</html>
http://207.228.21.82/select_ns.gif
http://207.228.21.82/select_ie.gif