[Resolved] Top bar sticky

Home Forums Support [Resolved] Top bar sticky

Home Forums Support Top bar sticky

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1012233
    Anders Nielsen

    Hi

    I’m have found some old posts, and it helped to get almost all the way…

    I’m trying to make the topbar sticky

    .top-bar
    {
        position: sticky;
        z-index: 999;
        top: 0;
        left: 0;
        right: 0;
    }

    But on Safari, the sticky is not supported – so I use the “position:fixed” but then the topbar blocks the menu on chrome!!

    What to do?

    #1012360
    David
    Staff
    Customer Support

    Hi there,

    you need to include the -webkit prefix sticky property in your CSS:

    position: -webkit-sticky;

    Add that to your CSS

    #1012414
    Anders Nielsen

    Great.. works 🙂

    #1012424
    David
    Staff
    Customer Support

    You’re welcome

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