Solved

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

Posted on 2010-09-16
2
239 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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