Page 1 of 1

Sizing combo boxes

Posted: Tue Oct 21, 2003 9:06 pm
by 3.14
How do I specify the size of combo boxes, command buttons, text boxes etc.

Currently the length of the longest value is determining the length of the box. I want to be able to specify the length.

Any help is greatly appreciated! :D

Posted: Tue Oct 21, 2003 9:09 pm
by markl999
<select name="whatever" style="width:100px;">

Posted: Tue Oct 21, 2003 10:00 pm
by 3.14
Thanks.

Another question...

How do I make a button to close the web page?

Posted: Tue Oct 21, 2003 10:03 pm
by d3ad1ysp0rk

Code: Select all

<form action=javascript:window.close() method="post" name="form1">
<input type="submit" value="Submit" name="submit">
</form>
I believe..

Posted: Tue Oct 21, 2003 10:07 pm
by 3.14
LiLpunkSkateR wrote:

Code: Select all

<form action=javascript:window.close() method="post" name="form1">
<input type="submit" value="Submit" name="submit">
</form>
I believe..

Code: Select all

<BUTTON style="width:50px;" onClick="window.close()">Close</BUTTON>
I found this way too. 8)