# Button Formatting

**URL:** <https://community.hubspot.com/t/button-formatting/85872>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [July 21, 2023, 5:36pm UTC](https://community.hubspot.com/t/button-formatting/85872 "2023-07-21T17:36:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clanahan](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Clanahan](https://community.hubspot.com/u/Clanahan)\
**Post date:** [July 21, 2023, 5:36pm UTC](https://community.hubspot.com/t/button-formatting/85872/1 "2023-07-21T17:36:59Z")

</div>

I am having trouble coding the buttons on the website page builder. The goal is to have the wording centered. Any tips or help would be great!

 ![Screenshot 2023-07-21 100908.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/1130fad3d614a3390b27826ba975e4bc719a7692.png)

---

<div class="post-metadata">

**Author:** ![Josh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/josh/32/17115_2.png) [@Josh](https://community.hubspot.com/u/Josh)\
**Post date:** [July 21, 2023, 5:54pm UTC](https://community.hubspot.com/t/button-formatting/85872/2 "2023-07-21T17:54:34Z")

</div>

Hi @Clanahan,

At the most basic level here is the CSS you’d apply. If there are only specific buttons you would be doing this for you can apply a class as well, but if you want all buttons on the site to have the same effect this should help.

```lia-code-sample
.button {
 text-align: center;
 vertical-align: middle;
} 

```

If you’ve already done this and it still isn’t working, there is likely something else in your CSS that is causing it to revert. You’d have to do a bit more digging to find that, but hopefully this gets you pointed in the right direction.

Josh
