# Centering an image

**URL:** <https://community.hubspot.com/t/centering-an-image/1925>\
**Category:** CMS Development\
**Created:** [May 4, 2017, 11:28pm UTC](https://community.hubspot.com/t/centering-an-image/1925 "2017-05-04T23:28:29Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![AAyuninjam](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@AAyuninjam](https://community.hubspot.com/u/AAyuninjam)\
**Post date:** [June 28, 2023, 7:06pm UTC](https://community.hubspot.com/t/centering-an-image/1925/11 "2023-06-28T19:06:48Z")

</div>

**SOLUTION: In the _Inline Styling_ field, add the CSS text-align: center;**  
THIS IS WEIRD BUT IT’S WHAT HUBSPOT SAYS AND I TRIED AND IT WORKS.

---

_[View the full topic](https://community.hubspot.com/t/centering-an-image/1925)._
