Site logo

Archived topic

Primary menu - remove padding above/below logo

4 replies · Started by ammgbr on June 12, 2022

Viewing posts 1–5 of 5

Hello, on desktop I have my logo and menu on the same line. I have used the following CSS to remove the logo padding above/below:

.navigation-branding .is-logo-image {
padding-top: 0px;
padding-bottom: 0px;
}

However, when I reduce the height of my logo the padding re-appears.

Hello there,

Can you try altering your current code into something like this?:

.navigation-branding .header-image.is-logo-image {
    padding-top: 0px;
    padding-bottom: 0px;
}

I added a class to your selector so that it its specificity score is higher than the default CSS rule which adds padding when you’ve set Navigation as header.

Kindly let us know how it goes.

Hello, tried this but unfortunately did not work.

I see that is what I get too, but I was trying for the logo not to have any dark space above/below but attach to the lines.

UPDATE

I think I managed to sort it by setting the Menu Item Height to 45px:)

This archived topic is closed to new replies.