Solved

Changing the space between the text and edge of a button control

Posted on 2010-09-16
2
240 Views
Last Modified: 2013-11-26
Can anybody tell me how I can access the properties of a button control so that I can alter the space between the text and the edge of the control itself?
1. We can't use Javascript   2. Setting the button to a fixed width is problematic if the text is determined at runtime (data driven).
0
Comment
Question by:Mosquitoe
2 Comments
 
LVL 4

Expert Comment

by:eric0213
ID: 33693608
Two options that I know of.

1. Set the top or bottom padding
2. Use an image

Neither are ideal. Option #1 can screw up the alignment with other controls. Option #2 is a pain if you need to do this on lots of different buttons with various text (or with dynamic text).

<input type="submit" value="hello world" style="height: 100px; padding-bottom: 50px;">
0
 

Accepted Solution

by:
Mosquitoe earned 0 total points
ID: 33693677
It seems to be working with these styles width:auto;overflow:visible

do you know if that would be problematic in the manner that I intend to use it?
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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

21 Experts available now in Live!

Get 1:1 Help Now