# Cookies Button alignment

**URL:** <https://community.hubspot.com/t/cookies-button-alignment/64503>\
**Category:** Tips, Tricks & Best Practices\
**Created:** [September 6, 2022, 10:00am UTC](https://community.hubspot.com/t/cookies-button-alignment/64503 "2022-09-06T10:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidJKenton](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@DavidJKenton](https://community.hubspot.com/u/DavidJKenton)\
**Post date:** [September 6, 2022, 10:00am UTC](https://community.hubspot.com/t/cookies-button-alignment/64503/1 "2022-09-06T10:00:00Z")

</div>

Hi Guys,

I want to align the cookies button to the right of the page, it automatically goes to the left, I have tried amending the code with no luck.

This is the code HubSpot generates.

\<!-- Start of HubSpot code snippet --\>

\<button type=“button” id=“hs\_show\_banner\_button”

style="background-color: #425b76; border: 1px solid #425b76;

border-radius: 3px; padding: 10px 16px; text-decoration: none; color: #fff;

font-family: inherit; font-size: inherit; font-weight: normal; line-height: inherit;

text-align: left; text-shadow: none;"

onClick="(function(){

var \_hsp = window.\_hsp = window.\_hsp || [];

\_hsp.push([‘showBanner’]);

})()"

\>

Cookie Settings

\</button\>

\<!-- End of HubSpot code snippet --\>

Can someone tell me how I align the code to the right, please?

Thank you,

David

---

<div class="post-metadata">

**Author:** ![danmoyle](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danmoyle/32/91166_2.png) [@danmoyle](https://community.hubspot.com/u/danmoyle)\
**Post date:** [September 6, 2022, 12:53pm UTC](https://community.hubspot.com/t/cookies-button-alignment/64503/2 "2022-09-06T12:53:11Z")

</div>

@DavidJKenton hi. I don’t know if this solution to a similar but different issue would help (I’m not a dev and code makes me itchy) but I found this: [how to center align buttons](https://community.hubspot.com/t5/CMS-Development/how-to-center-align-buttons/m-p/419932) and it includes some code.

Additionally, I might post this question in the [Developers area](https://community.hubspot.com/t5/HubSpot-Developers/ct-p/developers) to see if other devs can help. Here in the marketing area, I think you’ll find fewer developers and more marketers who try to avoid code. 😅
