|
-
I'm looking for a similar solution. I have a button that is used about 50 times but with different text. I use an array to publish the button text to each new button. The problem is that the button text varies. I want to set the button background to the width of the text.
Your solution works but it's not as 'sexy' and simple as we would both like.
Are you defining the letter with and height or have you calculated that somehow based on the type of font you are using?
I'll keep searching for a cleaner answer. If I find it I'll let you know : )
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|