Header Builder - Help with Flexbox

Hi there,

I have a layout issue going on which this video will help explain:

So my top header is made up of two nav elements and the logo positioned in the middle, while the social icons are positioned to the right of the screen.

Thing is, I did this with a separate container, but because of that the header does not line up with the footer. I tried rearranging the header into one container, and adding padding, but since it is centered, it does not work. How should I go about this?

Thanks!

Hey @Pbalazs89,

Thanks for the video. Because your site’s offline, I can only assume what your setup is. Below is my replication of it.

To balance that setup and make the navigation and text centered, add another container above the logo and navigation container and add a Horizontal Gap Element to it. The Gap width should be close to the total width of the icons.

As you can see in the screenshot below, that setup will center the middle container which contains the logo, navigation and text.

The entire setup for that is quite tricky though or it has many moving parts. If you like, you can follow the alternative setup below. Setup a Bar with Flexbox Child Placement set to Column and Align Horizontal to Center. That will stack and center the containers. The first container will contain the gap, logo, navigation and icons. The 2nd container will contain just the text.

Like the first example, I’m still using a Gap element to balance out the design or center the logo and navigation in the first container.

For the 2nd container, just add a Text element, you won’t have a problem with this 2nd container since it’s centered. Check the results below.

If you still have problems with this, please upload your site to an online server and give us the URL so we could see the exact setup.

Thanks.

Thanks a bunch! I think it works now, If I run into trouble I will let you know!

You’re welcome. We’re glad that the given suggestion helped.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.