# Image Grid Not Centered

**URL:** <https://community.hubspot.com/t/image-grid-not-centered/77373>\
**Category:** CMS Development\
**Created:** [March 16, 2023, 6:54pm UTC](https://community.hubspot.com/t/image-grid-not-centered/77373 "2023-03-16T18:54:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ALazzarone](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@ALazzarone](https://community.hubspot.com/u/ALazzarone)\
**Post date:** [March 16, 2023, 6:54pm UTC](https://community.hubspot.com/t/image-grid-not-centered/77373/1 "2023-03-16T18:54:17Z")

</div>

Hi,

I’m working with an image grid on my landing page and it is not centered correctly. I’ve tried messing with every setting I can find, but it still sits a little to the right (on both desktop and mobile). See the attached images for reference. You’ll see how the grid is closer to the right margin than the left. Is this a Huspot issue, or is there a setting you can point me to to fix this? Thanks!

 ![Screen Shot 2023-03-16 at 12.48.10 PM.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/d/7db49d91bc2db909ff00a85bb51ea18085294742.jpeg)

 ![Screen Shot 2023-03-16 at 12.47.51 PM.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/f/efe7857981b9c43b534b81658f135f87b4c5d8e4.jpeg)

---

<div class="post-metadata">

**Author:** ![BoatsByGeorge](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/boatsbygeorge/32/31184_2.png) [@BoatsByGeorge](https://community.hubspot.com/u/BoatsByGeorge)\
**Post date:** [March 18, 2023, 5:44pm UTC](https://community.hubspot.com/t/image-grid-not-centered/77373/2 "2023-03-18T17:44:00Z")

</div>

I am also dealing with this issue. It’s driving me insane because I can’t for the life of me figure it out.

---

<div class="post-metadata">

**Author:** ![BoatsByGeorge](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/boatsbygeorge/32/31184_2.png) [@BoatsByGeorge](https://community.hubspot.com/u/BoatsByGeorge)\
**Post date:** [March 18, 2023, 5:47pm UTC](https://community.hubspot.com/t/image-grid-not-centered/77373/3 "2023-03-18T17:47:44Z")

</div>

So I just found that if you check spacing, and you choose to edit separately, you can ad 40 px of spacing on the right margin and it seems to center everything fine.  
I don’t know why they offset image grids but that’s how it’s set up in hubspot.

 ![Screenshot 2023-03-18 at 1.46.21 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/f/4fb15ad32ff496648f9c876b892df8e06a8bc76a.png)

---

<div class="post-metadata">

**Author:** ![ALazzarone](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@ALazzarone](https://community.hubspot.com/u/ALazzarone)\
**Post date:** [March 20, 2023, 3:06pm UTC](https://community.hubspot.com/t/image-grid-not-centered/77373/4 "2023-03-20T15:06:23Z")

</div>

Thank you! So odd that we have to do this manually, but it worked. It seemed to look centered on mobile, too. Thanks again!

_Just a note, you have to select the image grid, go to the “Styles” tab, and click the “Image grid” dropdown to access these spacing settings._

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [April 1, 2023, 4:34pm UTC](https://community.hubspot.com/t/image-grid-not-centered/77373/5 "2023-04-01T16:34:26Z")

</div>

@ALazzarone @BoatsByGeorge I took a look at the code for the module, it looks like it has a role set of “list” which is making it a UL (unordered list) which has a padding-inline-start set of 40px, this is inherited from the user agent stylesheet which is why you can’t edit it in the module, but also why adding the right 40px fixes the issue.

Hope this helps ease your mind 🙂
