Solved

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

Posted on 2010-09-16
2
244 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

635 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