Site logo

Archived topic

Logo in Navbar - padding and menu center

10 replies · Started by scott doel on March 3, 2017

Viewing posts 1–11 of 11

Hi Tom,

have copied the solution posted here and added padding left of 2 cm.

But I also have padding below the menu, and the menu has shifted to the right

Is it possible you could help me with the CSS to:

1. remove the padding from below the menu
2. have the primary menu still centre

Just thinking you might need a link to the website!

I've tried it now, but the menu still gets pushed to the right. Also, I can't centre the logo vertically within the menu

Where are you wanting the menu to be? Next to the logo or all the way to the right?

For vertical centering, try this:

.main-navigation .navigation-logo {
    padding-top: 5px;
}

No I wanted the log to be center, but the center option still leaves it pushed to the right after adding the logo

You want the logo to be centered, or the menu?

Sorry Tom, I want the menu to centre of the page

Ah ok, you'll need to take the logo out of the flow of the page then.

Try this:

.main-navigation .navigation-logo {
    position: absolute;
    left: 0;
}

Perfect! Thank you Tom

You're welcome :)

This archived topic is closed to new replies.