# Dynamically position text/button

**URL:** <https://forum.kirupa.com/t/dynamically-position-text-button/275575>\
**Category:** Uncategorized\
**Created:** [November 16, 2008, 5:44am UTC](https://forum.kirupa.com/t/dynamically-position-text-button/275575 "2008-11-16T05:44:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![netforum](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@netforum](https://forum.kirupa.com/u/netforum)\
**Post date:** [November 16, 2008, 5:44am UTC](https://forum.kirupa.com/t/dynamically-position-text-button/275575/1 "2008-11-16T05:44:27Z")

</div>

Hi, I have a dynamic text “font size” between a “+” text button and a “-” text button. The “font size” text will change between English text “font size” and Spanish text “tamaño del texto”. I have a very hard time dynamically positioning the “+” and the “-” text buttons so that the spacing between the buttons and the text is the same. The following code does not really work. spacing = 5; btFontIncrease.\_x = dtFontSize.\_x - btFontIncrease.\_width - spacing; btFontDecrease.\_x = dtFontSize.\_x + dtFontSize.\_width + spacing; The problem is that there are margins before and after the text even though the margin values default to 0. What else can I do? Any help is much appreciated.
