size of button...real easy one

I have a button on a form and the text on the button is "Print".  The button is too small.  If I make the value = "         Print      " it is fine, but I think I am cheating.  What is the right way to do this??
CCOIAAsked:
Who is Participating?
 
COBOLdinosaurCommented:
Try:
<input type="button" value="Print" style="width:100;text-align:center">

Works for just about every browser except Netscrap 4.x

Cd&
0
 
dorwardCommented:
That sbould be:

width: 100px;

The CSS specification requires units for non-zero values on most properties, including width.



0
 
COBOLdinosaurCommented:
Glad I could help thanks for the A. :^)

Cd&
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.