Site logo

Archived topic

Vertical alignment of floating menu

12 replies · Started by Ketil on September 19, 2020

Viewing posts 1–13 of 13

Hi. Is there a way to vertically align a horizontal menu floating to the right of the logo, without also effecting the logo?
The only setting I found that effect this, is height of menu item, but perhaps there is another way without writing css?

Hi there,

Is this a live site with traffic?

If not then you could consider using GeneratePress 3.0 which is currently in beta.

If you switch over to Flexbox then the menu should be vertically aligned by default:
https://generatepress.com/generatepress-3-0-a-new-era/

If not we can come up with other solutions as well.

Let me know :)

It's going live october 1st

That case I'd recommend going with the 3.0 beta for now.

Let me know what your thought is.

I'll try it. I'll deactivate current GP-version, then install the beta?

As it turns out, the site use a childtheme to hold some custom code, so I can't use a different theme to solve this. Any quick fix will do :)

Try this:

@media (min-width: 769px) {
    .inside-header {
        display: flex;
        align-items: center;
    }
    .nav-float-right .inside-header .main-navigation {
       float: none !important;
       margin-left: auto;
    } 
}

yes, that did it, thanks!

No problem :)

Solved.

Glad to hear :)

This archived topic is closed to new replies.