Menu top margin and sticky menu

Home Forums Support Menu top margin and sticky menu

Home Forums Support Menu top margin and sticky menu

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #190873
    David

    Hi Tom,
    A few weeks ago you gave me the CSS below to adjust the menu top margin.
    It works fine, but I just realised that it has a side effect – if you have the sticky menu turned on, there is a gap of the 60px, so the menu is not flush to the top of the page…
    Any thoughts ?
    Thanks, Dave

    @media (min-width: 769px) {
        .main-navigation {
            margin-top: 60px;
        }
    }
    #190908
    Tom
    Lead Developer
    Lead Developer

    Try this:

    @media (min-width: 769px) {
        .main-navigation:not(.is_stuck),
        .main-navigation:not(.navigation-clone) {
            margin-top: 60px;
        }
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.