• Hi there
    Is it possible to vertical align the text of the buttons in the main navigation menu?

    Nico

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nico6293

    (@nico6293)

    Hi there
    I found this css
    It works. Also the height of te nav bar is adustable. But:

    .main-navigation .main-nav ul li a {
    line-height: inherit;
    padding-top: 10px;
    padding-bottom: 10px;
    }

    .main-navigation .main-nav ul li {
    display: flex;
    align-items: center;
    }

    On screens of my phone. the height of the menu buttons are adjustable, but he menu height itself is not affected by this code.

    Is it possible to also adust the height of the menu?

    Hi there,

    Have you solved this? I’m not seeing any buttons or misalignment in the menu.

    Not exactly sure what you are trying to do but this article might be handy:
    https://docs.generatepress.com/article/adding-buttons-navigation/

    Thread Starter nico6293

    (@nico6293)

    Hi Leo
    I think I just found it. Now I have CSS code to adjust height of menu and menu buttons.

    .main-navigation .main-nav ul li a {
    line-height: inherit;
    padding-top: 10px;
    padding-bottom: 10px;
    }

    .main-navigation .main-nav ul li {
    display: flex;
    align-items: center;
    }

    /* navigation menu height on max 768px */

    @media (max-width: 768px) {
    .menu-toggle {
    line-height: 40px;
    }
    }

    /* navigation menu items height on max 768px */

    @media (max-width: 768px) {
    .main-navigation .main-nav ul li a {
    line-height: 20px;
    }
    }

    Glad to hear ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Vertical align text main navigation menu’ is closed to new replies.