# Button limitation on centring

**URL:** <https://forums.realmacsoftware.com/t/button-limitation-on-centring/52346>\
**Category:** Elements\
**Created:** [November 10, 2025, 8:26pm UTC](https://forums.realmacsoftware.com/t/button-limitation-on-centring/52346 "2025-11-10T20:26:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ColinJA](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/colinja/32/7258_2.png) [@ColinJA](https://forums.realmacsoftware.com/u/ColinJA)\
**Post date:** [November 10, 2025, 8:26pm UTC](https://forums.realmacsoftware.com/t/button-limitation-on-centring/52346/1 "2025-11-10T20:26:41Z")

</div>

I wish to use two lines of text on a button, centred one above the other. However, while the text block is centred, the two lines default to range left within that. I can correct this (imperfectly) by using hard spaces on the shorter line, but it might be useful, if you think there are any other obtuse bods like me, to make this alignment possible in a future iteration of _ **elements** _. Or perhaps there’s already a trick I’m missing.

The reason for this, in my case, is that I want to enter book/story titles on a small group of buttons, without having very wide ones.

---

<div class="post-metadata">

**Author:** ![jbyfield](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jbyfield/32/82_2.png) [@jbyfield](https://forums.realmacsoftware.com/u/jbyfield)\
**Post date:** [November 10, 2025, 8:43pm UTC](https://forums.realmacsoftware.com/t/button-limitation-on-centring/52346/2 "2025-11-10T20:43:56Z")

</div>

Under Advanced in the button settings add ‘text-center’ for the CSS and it will work.

 ![Untitled](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/4/b/4b49dceb1c1a0755387801c68907a05a13edcac7.jpeg)

---

<div class="post-metadata">

**Author:** ![ColinJA](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/colinja/32/7258_2.png) [@ColinJA](https://forums.realmacsoftware.com/u/ColinJA)\
**Post date:** [November 10, 2025, 10:17pm UTC](https://forums.realmacsoftware.com/t/button-limitation-on-centring/52346/3 "2025-11-10T22:17:16Z")

</div>

Thanks. So simple. Then so am I these days, or going the way!
