Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-09-16
2
Medium Priority
?
245 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

Docker-Compose to Simplify Multi-Container Builds

Our veteran DevOps Author takes you through how to build a multi-container environment, managed with a single utility in order to simplify your deployments.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

704 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