[Resolved] Align submenu left edge with top menu text

Home Forums Support [Resolved] Align submenu left edge with top menu text

Home Forums Support Align submenu left edge with top menu text

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1597950
    Ola

    Hi!

    Trying to implement GP on my site. In the top menu, currently the top item and submenu are left aligned at field level; and thus the text between the levels are aligned.

    I am using a top border to mark the submenu and that type of alignment looks a bit weird.

    I’d like for the left edge of the submenu “box” to be aligned with the left edge of the corresponding text in the main menu above. (The text in the submenu will be indented somewhat relative to the text in the main menu).

    How can I do that?

    Thanks!

    /O

    #1598061
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to your site so i can see the current layout.

    #1598374
    Ola

    Absolutely; the staging site is: https://www.stag1.ikigai.se/

    /O

    #1598414
    David
    Staff
    Customer Support

    Try this CSS:

    .main-navigation:not(.toggled) ul li.sfHover > ul, 
    .main-navigation:not(.toggled) ul li:hover > ul {
        left: 10px;
    }
    #1598439
    Ola

    Great! Works like a charm!

    Thanks!

    /O

    #1598444
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.