Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1218877

    Hi,

    I tried to decrease menu height, following this thread: https://kriesi.at/support/topic/menus-height/
    and adding this code:

    .main_menu ul:first-child > li a {
        height: 40px!important;
        line-height: 40px!important;
    }
    nav.main_menu {
        height: 40px!important;
    }
    .html_header_top.html_header_sticky #main {
        padding-top: 188px!important;
    }

    It works, but the problem is that it also has influence on my submenus (see screenshots in private content).
    How could I fix this?

    If needed, you can find a link and credentials to my website in private content.

    Thanks a lot!

    #1220314

    Hi,
    Any help on this please? :-S
    Thanks a lot! ;-)

    #1221274

    Hi,

    Sorry for the delay. Try to replace this code:

    .main_menu ul:first-child > li a {
        height: 40px!important;
        line-height: 40px!important;
    }
    

    .. with:

    .main_menu ul:first-child > li > a {
        height: 40px!important;
        line-height: 40px!important;
    }
    

    This should only affect the first level menu items.

    Best regards,
    Ismael

    #1221326

    Hi Ismael,
    It works great.
    Thanks a lot! ;-)

    #1221405

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Main menu's height’ is closed to new replies.