# Elements not centering as expected!

**URL:** <https://forum.bubble.io/t/elements-not-centering-as-expected/125994>\
**Category:** App Organization\
**Created:** [December 16, 2020, 2:31am UTC](https://forum.bubble.io/t/elements-not-centering-as-expected/125994 "2020-12-16T02:31:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![camirgarzon](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@camirgarzon](https://forum.bubble.io/u/camirgarzon)\
**Post date:** [December 16, 2020, 2:31am UTC](https://forum.bubble.io/t/elements-not-centering-as-expected/125994/1 "2020-12-16T02:31:36Z")

</div>

![Screen Shot 2020-12-15 at 9.27.24 PM](https://us1.discourse-cdn.com/bubble/original/3X/f/3/f3a5cc8a1b94124fa10dd9a01ee4700b296bdf05.png) ![Screen Shot 2020-12-15 at 9.27.49 PM](https://us1.discourse-cdn.com/bubble/original/3X/8/b/8bfc8dae6352980454cfc6e1256cc69562ebe2d2.png)

Hi all. I am having trouble with centering elements. They are centered correctly (right click, center horizontally), and they look perfect in the editor, but when i go to preview they are completely on the other side of the page, and change positions sporadically. I’ve tried a few things - grouped all the elements together and centered the group, ungrouped them, tried positioning with the grid on, inspecting the element to check for unexpected padding, etc.

Has anyone else been having this problem? What can I do here?

---

<div class="post-metadata">

**Author:** ![ben4](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ben4/32/20434_2.png) [@ben4](https://forum.bubble.io/u/ben4)\
**Post date:** [December 16, 2020, 7:02am UTC](https://forum.bubble.io/t/elements-not-centering-as-expected/125994/2 "2020-12-16T07:02:05Z")

</div>

Have you tried looking in the responsive tab? It sort of looks like it doesn’t have max with when stretched turned on and also might be left justified? Not sure, but give the responsive tab a look.

---

<div class="post-metadata">

**Author:** ![camirgarzon](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@camirgarzon](https://forum.bubble.io/u/camirgarzon)\
**Post date:** [December 16, 2020, 4:04pm UTC](https://forum.bubble.io/t/elements-not-centering-as-expected/125994/3 "2020-12-16T16:04:02Z")

</div>

Thanks Ben, that fixed it! It looks like I had to turn on max width and centered fixed margin!
