# Question about the button component - new user

**URL:** <https://forums.realmacsoftware.com/t/question-about-the-button-component-new-user/57043>\
**Category:** Elements\
**Created:** [July 18, 2026, 12:43pm UTC](https://forums.realmacsoftware.com/t/question-about-the-button-component-new-user/57043 "2026-07-18T12:43:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamie1](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jamie1](https://forums.realmacsoftware.com/u/Jamie1)\
**Post date:** [July 18, 2026, 12:43pm UTC](https://forums.realmacsoftware.com/t/question-about-the-button-component-new-user/57043/1 "2026-07-18T12:43:02Z")

</div>

New user here. I’ve been using the button component in Elements and have got it looking exactly as I want it in terms of font style, background and border etc but have a problem I can’t seem to solve.

As soon as I turn it into a link to go to an external webpage suddenly the width increases to go to both edges of the page which is something I don’t want. (I just want the button to be the width of the text inside it). Any help would be appreciated.

---

<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 18, 2026, 12:57pm UTC](https://forums.realmacsoftware.com/t/question-about-the-button-component-new-user/57043/2 "2026-07-18T12:57:31Z")

</div>

@Jamie1

other ways to do this as well

---

<div class="post-metadata">

**Author:** ![Jamie1](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jamie1](https://forums.realmacsoftware.com/u/Jamie1)\
**Post date:** [July 18, 2026, 4:19pm UTC](https://forums.realmacsoftware.com/t/question-about-the-button-component-new-user/57043/3 "2026-07-18T16:19:50Z")

</div>

thank-you Steve that’s solved it
