# Button bug

**URL:** <https://forums.realmacsoftware.com/t/button-bug/57038>\
**Category:** Elements\
**Created:** [July 17, 2026, 8:48pm UTC](https://forums.realmacsoftware.com/t/button-bug/57038 "2026-07-17T20:48:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Woolwine](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/mark_woolwine/32/36163_2.png) [@Mark\_Woolwine](https://forums.realmacsoftware.com/u/Mark_Woolwine)\
**Post date:** [July 17, 2026, 8:48pm UTC](https://forums.realmacsoftware.com/t/button-bug/57038/1 "2026-07-17T20:48:13Z")

</div>

I have a button that says Get a Free Estimate. When you add a link to the button it automatically changes the button text from center to left aligned.

---

<div class="post-metadata">

**Author:** ![PMUK](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@PMUK](https://forums.realmacsoftware.com/u/PMUK)\
**Post date:** [July 18, 2026, 10:37am UTC](https://forums.realmacsoftware.com/t/button-bug/57038/2 "2026-07-18T10:37:45Z")

</div>

I think it might be a good idea to attach the project and someone will come back to you and dont forget to add your @name you’re wanting help from otherwise you might wait a very long time.

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [July 18, 2026, 3:02pm UTC](https://forums.realmacsoftware.com/t/button-bug/57038/3 "2026-07-18T15:02:18Z")

</div>

It certainly shouldn’t left align, can you share the project via Element Cloud so we can take a look for you?

Edit: Just had a thought… Don’t link the text in the button, link the button itself from the Inspector. That should fix it for you.

---

<div class="post-metadata">

**Author:** ![Mark\_Woolwine](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/mark_woolwine/32/36163_2.png) [@Mark\_Woolwine](https://forums.realmacsoftware.com/u/Mark_Woolwine)\
**Post date:** [July 19, 2026, 5:32pm UTC](https://forums.realmacsoftware.com/t/button-bug/57038/4 "2026-07-19T17:32:02Z")

</div>

It changes when I link the button itself. Here is the file: elementsapp://downloadDocument/InGw9qpBhiT4

It is in the home page. There are 2 buttons. They change to left aligned on mobile.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/3/8/38cff6bf1d21273e7eb9b1ad1a8a8e9733323e11.jpeg)

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [July 19, 2026, 6:01pm UTC](https://forums.realmacsoftware.com/t/button-bug/57038/5 "2026-07-19T18:01:40Z")

</div>

Try and put the code below in the advanced section of the button

```auto
text-center

```

I think the button wraps text if no room, then the left center right align does not work, you have to provide width as well, bigger than the the text,going from memory here

Normal text does not behave like this

might be wrong will have to test when I am on my Mac when I have time

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [July 19, 2026, 6:09pm UTC](https://forums.realmacsoftware.com/t/button-bug/57038/6 "2026-07-19T18:09:12Z")

</div>

it all works if you set the link on the text, not on the button,

[https://forums.realmacsoftware.com/t/question-about-the-button-component-new-user/57043/2?u=upssjw](https://forums.realmacsoftware.com/t/question-about-the-button-component-new-user/57043/2)

---

<div class="post-metadata">

**Author:** ![Mark\_Woolwine](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/mark_woolwine/32/36163_2.png) [@Mark\_Woolwine](https://forums.realmacsoftware.com/u/Mark_Woolwine)\
**Post date:** [July 19, 2026, 6:32pm UTC](https://forums.realmacsoftware.com/t/button-bug/57038/7 "2026-07-19T18:32:44Z")

</div>

> [@upssjw](#):
>
> ```auto
> text-center
> 
> ```

That fixed it.
