# CTA button alignment issue

**URL:** <https://community.hubspot.com/t/cta-button-alignment-issue/2864>\
**Category:** CMS Development\
**Created:** [July 28, 2017, 6:46am UTC](https://community.hubspot.com/t/cta-button-alignment-issue/2864 "2017-07-28T06:46:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carroll93](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/carroll93/32/61905_2.png) [@Carroll93](https://community.hubspot.com/u/Carroll93)\
**Post date:** [July 28, 2017, 6:46am UTC](https://community.hubspot.com/t/cta-button-alignment-issue/2864/1 "2017-07-28T06:46:05Z")

</div>

Hi guys can someone teach me how to align CTA button to the center of the page? Please see attached image, thank you.

 ![CTA button issue.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/6/b6ea4d9720c88613a5b498edb40d46320e8d4fa9.png)

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [July 28, 2017, 9:00am UTC](https://community.hubspot.com/t/cta-button-alignment-issue/2864/2 "2017-07-28T09:00:14Z")

</div>

```auto
.parent-class-name form .actions{
text-align:center;
}

/* .parent-class-name is the main class container of form. This works most of the time */

body .container-fluid .row-fluid .parent-class-name a.cta_button{
margin:0 auto;
float:none;
}

/* Give this styling if you have a max-width or width for your button.

```

If both don’t work, please share the page link so that I can provide the accurate solution.

---

<div class="post-metadata">

**Author:** ![Carroll93](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/carroll93/32/61905_2.png) [@Carroll93](https://community.hubspot.com/u/Carroll93)\
**Post date:** [July 28, 2017, 12:25pm UTC](https://community.hubspot.com/t/cta-button-alignment-issue/2864/3 "2017-07-28T12:25:15Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![adrian\_davies](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/adrian_davies/32/98299_2.png) [@adrian\_davies](https://community.hubspot.com/u/adrian_davies)\
**Post date:** [April 20, 2018, 1:51pm UTC](https://community.hubspot.com/t/cta-button-alignment-issue/2864/4 "2018-04-20T13:51:59Z")

</div>

Hi. I have the same problem, but where does that code go?
