# What is the code for centering an uploaded image?

**URL:** <https://meta.discourse.org/t/what-is-the-code-for-centering-an-uploaded-image/77446>\
**Category:** Product Support\
**Created:** [8 januari 2018 om 04:07 UTC](https://meta.discourse.org/t/what-is-the-code-for-centering-an-uploaded-image/77446 "2018-01-08T04:07:30Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![papyrophilia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/papyrophilia/32/161518_2.png) [@papyrophilia](https://meta.discourse.org/u/papyrophilia)\
**Post date:** [28 september 2020 om 07:20 UTC](https://meta.discourse.org/t/what-is-the-code-for-centering-an-uploaded-image/77446/19 "2020-09-28T07:20:27Z")

</div>

> [@jomaxro](#):
>
> ⚠ **Note that the blank line is needed** due to the mix of HTML and markdown. Without the blank line you’ll end up with centered text, rather than an image.

🙏 Thank you for this! I knew I had the right code but could not get the right result. Appreciate the reminder and the explanation @jomaxro!

---

_[View the full topic](https://meta.discourse.org/t/what-is-the-code-for-centering-an-uploaded-image/77446)._
