Site logo

[Resolved] Sticky menu navigation position

Home Forums Support [Resolved] Sticky menu navigation position

Home Forums Support Sticky menu navigation position

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1711203
    Rostyslav

    Hello,

    I am using a sticky navigation and I use this code for top margin:

    #sticky-navigation,
    #mobile-header.is_stuck {
      top: 27px !important;

    In desktop view, all works perfectly but in mobile view I need to lower it more. https://ibb.co/mcMKYPz

    How can a use the same code but just for mobile with a different margin?

    Thank you1

    #1711283
    David
    Staff
    Customer Support

    Hi there,

    You will need to create two separate CSS rules like this:

    /* Desktop sticky nav position */
    #sticky-navigation {
      top: 27px !important;
    }
    /* Mobile sticky nav position */
    #mobile-header.is_stuck {
      top: 32px !important;
    }
    #1711633
    Rostyslav

    Works! Thanks David!

    #1711738
    David
    Staff
    Customer Support

    Glad to hear that!

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