# Header wont center on page

**URL:** <https://forum.bubble.io/t/header-wont-center-on-page/42137>\
**Category:** Responsiveness\
**Created:** [November 12, 2018, 1:04pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137 "2018-11-12T13:04:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jynx2234](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jynx2234/32/32193_2.png) [@jynx2234](https://forum.bubble.io/u/jynx2234)\
**Post date:** [November 12, 2018, 1:04pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/1 "2018-11-12T13:04:53Z")

</div>

Im having a hard time understanding the header responsiveness. In the responsive tab on the header, it does what I want, it stretches to 100% max and then stays centered. On the preview of the site however, the header stays on the left side of the page instead of centered. Its driving me crazy!

Here is what the preview looks like: [https://practicek.bubbleapps.io/version-test?debug\_mode=true](https://practicek.bubbleapps.io/version-test?debug_mode=true)

This is what Im trying to achieve: [https://rentalstemplate.bubbleapps.io/version-published\_template/](https://rentalstemplate.bubbleapps.io/version-published_template/)

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 12, 2018, 1:39pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/2 "2018-11-12T13:39:37Z")

</div>

I think sharing your editor would be best so we can see how to help you quickly. Otherwise we are just throwing out guesses. 🙂

My guess would be the alignment or possibly the element not going across the whole screen.

---

<div class="post-metadata">

**Author:** ![jynx2234](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jynx2234/32/32193_2.png) [@jynx2234](https://forum.bubble.io/u/jynx2234)\
**Post date:** [November 12, 2018, 1:51pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/3 "2018-11-12T13:51:37Z")

</div>

> **[Bubble Editor - Practicek](https://bubble.io/page?name=index&id=practicek&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 12, 2018, 2:09pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/4 "2018-11-12T14:09:16Z")

</div>

Not able to view the editor yet. Try this:

 ![Viewable](https://us1.discourse-cdn.com/bubble/original/3X/5/2/52f86967d69e728dfc0fe902874038ea38101aa1.png)

---

<div class="post-metadata">

**Author:** ![jynx2234](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jynx2234/32/32193_2.png) [@jynx2234](https://forum.bubble.io/u/jynx2234)\
**Post date:** [November 12, 2018, 2:13pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/5 "2018-11-12T14:13:18Z")

</div>

Didnt know about that, this is my third day playing with Bubble! Its now set to everyone can view

> **[Bubble Editor - Practicek](https://bubble.io/page?name=index&id=practicek&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 12, 2018, 2:38pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/6 "2018-11-12T14:38:34Z")

</div>

Try deleting the header and putting it in again, sometimes that helps. It’s a reusable element so it should be pretty easy.

---

<div class="post-metadata">

**Author:** ![jynx2234](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jynx2234/32/32193_2.png) [@jynx2234](https://forum.bubble.io/u/jynx2234)\
**Post date:** [November 12, 2018, 5:42pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/7 "2018-11-12T17:42:01Z")

</div>

Just tried it, still not centered.

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 12, 2018, 6:02pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/8 "2018-11-12T18:02:53Z")

</div>

Hmm, looks better from my side, try refreshing the browser maybe. 🙂

Oh, I see now. You need an empty group inbetween, or… just move the log in group all the way to the right. You almost got it! 🙂

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 12, 2018, 6:17pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/9 "2018-11-12T18:17:27Z")

</div>

Also don’t put a max width here on the header page:

![Capture](https://us1.discourse-cdn.com/bubble/original/3X/7/0/70b110d38b6e2dd4aa98b2b062d0ff14d2750fdf.png)

That could be an issue possibly.

---

<div class="post-metadata">

**Author:** ![jynx2234](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jynx2234/32/32193_2.png) [@jynx2234](https://forum.bubble.io/u/jynx2234)\
**Post date:** [November 12, 2018, 8:13pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/10 "2018-11-12T20:13:06Z")

</div>

Here is what im seeing. The header is the width I want, but its off to the left

 ![1img](https://us1.discourse-cdn.com/bubble/original/3X/c/3/c30c0da23f6be98311457646c3c9c5763f47a4a9.jpeg)

When I turn off the apply max width option, it stretches the header across the whole screen, which isnt what im going for:

 ![2img](https://us1.discourse-cdn.com/bubble/original/3X/c/8/c820d40f414c1ca0ef48885788d57248d29c4c00.jpeg)

This is a bubble site with the header I am trying to achieve:

 ![3img](https://us1.discourse-cdn.com/bubble/original/3X/5/c/5cfb6c53a11ebb2fd0f925fef1275b03dfd2cdc2.jpeg)

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 12, 2018, 8:32pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/11 "2018-11-12T20:32:09Z")

</div>

I would try adding groups as empty spacer on the sides and make sure the sizes are equal. Then make sure they are allowed to expand without a maximum. Maybe try that out. See if it helps. Or you can put all the items you have in another group and just make that group a max size that is centered and see if that works. There are so many ways to achieve it. Just have to find the one that you prefer.

---

<div class="post-metadata">

**Author:** ![jynx2234](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jynx2234/32/32193_2.png) [@jynx2234](https://forum.bubble.io/u/jynx2234)\
**Post date:** [November 12, 2018, 8:34pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/12 "2018-11-12T20:34:33Z")

</div>

What I dont get is that the group with the “check in” and “check out” forms in the middle of the page are doing what I want, and as far as I can tell I have it set up the same way.

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 12, 2018, 8:53pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/13 "2018-11-12T20:53:45Z")

</div>

Have you checked out this video yet? It is pretty helpful to understand responsiveness better. Def worth taking a look if you haven’t done so.

**Understanding responsive settings**

> **[You don't need to be a coder](https://bubble.io/videos)**
>
> Bubble introduces a new way to build a web application. It’s a point-and-click programming tool, entirely without code. Bubble hosts all applications on its cloud platform.

---

<div class="post-metadata">

**Author:** ![jynx2234](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jynx2234/32/32193_2.png) [@jynx2234](https://forum.bubble.io/u/jynx2234)\
**Post date:** [November 13, 2018, 12:07pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/14 "2018-11-13T12:07:35Z")

</div>

Ive found that the problem was being caused by this being a “floating” group. When I put it as a normal group the header stays centered. However, now the menu doesnt stay sticky to the top of the page.

---

<div class="post-metadata">

**Author:** ![m.lewis](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/m.lewis/32/26158_2.png) [@m.lewis](https://forum.bubble.io/u/m.lewis)\
**Post date:** [November 13, 2018, 12:10pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/15 "2018-11-13T12:10:53Z")

</div>

Have you fixed this? Happy to take a look if you havent found a solution yet.

---

<div class="post-metadata">

**Author:** ![jynx2234](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jynx2234/32/32193_2.png) [@jynx2234](https://forum.bubble.io/u/jynx2234)\
**Post date:** [November 13, 2018, 12:13pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/16 "2018-11-13T12:13:39Z")

</div>

Nope, I want to have a floating “sticky” top menu, but I cant get the floating group to center on the page on my desktop, it either floats all the way left or right

---

<div class="post-metadata">

**Author:** ![m.lewis](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/m.lewis/32/26158_2.png) [@m.lewis](https://forum.bubble.io/u/m.lewis)\
**Post date:** [November 13, 2018, 12:14pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/17 "2018-11-13T12:14:23Z")

</div>

Okay, lets get into it. Can you allow me editor access?

---

<div class="post-metadata">

**Author:** ![jynx2234](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jynx2234/32/32193_2.png) [@jynx2234](https://forum.bubble.io/u/jynx2234)\
**Post date:** [November 13, 2018, 12:37pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/18 "2018-11-13T12:37:21Z")

</div>

I think I just figured it out. I had to make a header group that is fixed width, and place it inside of a floating group that is not. Now its doing what I am trying to make it do!

---

<div class="post-metadata">

**Author:** ![m.lewis](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/m.lewis/32/26158_2.png) [@m.lewis](https://forum.bubble.io/u/m.lewis)\
**Post date:** [November 13, 2018, 12:39pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/19 "2018-11-13T12:39:21Z")

</div>

Good solve! Give me a shout if you need any help getting settled in. Welcome to bubble!

Mike

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 13, 2018, 1:20pm UTC](https://forum.bubble.io/t/header-wont-center-on-page/42137/20 "2018-11-13T13:20:04Z")

</div>

Great job! Yes, putting a group inside another group is very helpful to get things to do what you want. Welcome to bubble!

[Next page](https://forum.bubble.io/t/header-wont-center-on-page/42137.md?page=2)
