PDA

View Full Version : input type="button" width problem


Richard2003
09-29-2002, 08:21 PM
Hi !

I have a problem with JavaScript : how can I set up the width of the button in a INPUT tag?

<input type="button" value=" 5 " onclick="calc(5)">
<input type="button" value=" SQR " onclick="spec(1)">

My target is that I want that the width of both buttons are of the same width.

How do I do that?

Richard

x_goose_x
09-29-2002, 08:29 PM
<input type="button" style="width: 200px;">

Richard2003
09-29-2002, 08:46 PM
Thank you very much x_goose_X !

This was exactly what I needed ! :thumbsup:

Have a good day :)

zoobie
09-29-2002, 11:58 PM
<input type="button" style="width:80; height:23;text-align:center;cursor:hand;font-family:arial;font-weight:bold;font-style:italic;color:red;background-color:navy;border-color:cyan" value="SQR" onclick="spec(1)"> :D