Solved

size of button...real easy one

Posted on 2002-06-28
3
150 Views
Last Modified: 2012-05-04
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??
0
Comment
Question by:CCOIA
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 20 total points
ID: 7116885
Try:
<input type="button" value="Print" style="width:100;text-align:center">

Works for just about every browser except Netscrap 4.x

Cd&
0
 
LVL 17

Expert Comment

by:dorward
ID: 7116926
That sbould be:

width: 100px;

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



0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7117001
Glad I could help thanks for the A. :^)

Cd&
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now