Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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