# How to add margin/padding in Ghost theme?

**URL:** <https://forum.ghost.org/t/how-to-add-margin-padding-in-ghost-theme/27538>\
**Category:** Developer help\
**Created:** [December 25, 2021, 7:28pm UTC](https://forum.ghost.org/t/how-to-add-margin-padding-in-ghost-theme/27538 "2021-12-25T19:28:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrii/32/11786_2.png) [@andrii](https://forum.ghost.org/u/andrii)\
**Post date:** [December 25, 2021, 7:28pm UTC](https://forum.ghost.org/t/how-to-add-margin-padding-in-ghost-theme/27538/1 "2021-12-25T19:28:09Z")

</div>

Hello, I want to add margin or padding in Ghost theme for a “Subscribe on YouTube!” button.  
Are there any margin/padding classes like in tailwind or bootstrap? E.g. mt-2?

```auto
 <p>{{@site.description}}</p>
    <p><a class="gh-head-button" href="https://bit.ly/mrhackio">Subscribe on YouTube!</a></p>

```

![Screen Shot 2021-12-25 at 9.26.39 PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/a/8/a8461e4e255d4b2725c0c2c3d81a9ef7a23addb2.png)

---

<div class="post-metadata">

**Author:** ![inoryum](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/inoryum/32/11866_2.png) [@inoryum](https://forum.ghost.org/u/inoryum)\
**Post date:** [December 25, 2021, 8:42pm UTC](https://forum.ghost.org/t/how-to-add-margin-padding-in-ghost-theme/27538/2 "2021-12-25T20:42:28Z")

</div>

On the theme you are using there are no such utility classes. You could utilize the code injection & add your custom CSS Like this

```auto
<style>
.site-header-content .gh-head-button {
 margin-top: 2rem;
}
</style>

```

Or you can create your own classes in the main CSS file

---

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrii/32/11786_2.png) [@andrii](https://forum.ghost.org/u/andrii)\
**Post date:** [December 26, 2021, 6:04pm UTC](https://forum.ghost.org/t/how-to-add-margin-padding-in-ghost-theme/27538/3 "2021-12-26T18:04:18Z")

</div>

thank you! it worked
