# Any way to center and image in a container

**URL:** <https://forums.realmacsoftware.com/t/any-way-to-center-and-image-in-a-container/48924>\
**Category:** Elements\
**Created:** [July 17, 2025, 3:24am UTC](https://forums.realmacsoftware.com/t/any-way-to-center-and-image-in-a-container/48924 "2025-07-17T03:24:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lampfancy](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@Lampfancy](https://forums.realmacsoftware.com/u/Lampfancy)\
**Post date:** [July 17, 2025, 3:24am UTC](https://forums.realmacsoftware.com/t/any-way-to-center-and-image-in-a-container/48924/1 "2025-07-17T03:24:18Z")

</div>

Hello folks. I have an image in a container, and I would like to center it on the center of the page. I have set a max size of the image so it won’t go over 100% however when I open the page up wider than the image it moves from being from centered to the left. Can anyone please help? Thanks.

---

<div class="post-metadata">

**Author:** ![TomM](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/tomm/32/265_2.png) [@TomM](https://forums.realmacsoftware.com/u/TomM)\
**Post date:** [February 22, 2026, 9:49pm UTC](https://forums.realmacsoftware.com/t/any-way-to-center-and-image-in-a-container/48924/2 "2026-02-22T21:49:26Z")

</div>

1. **Select the Image Component** : Click on the image you want to center.

2. **Adjust Margin Settings** : Use the Margin settings under the Spacing Control. Set the left and right margins to `Auto` to center the image horizontally.

3. **Ensure Container Size** : Make sure the Container has a defined width or height if you’re centering vertically.
