[Resolved] Fixed Top Bar – Pushing Down Body

Home Forums Support [Resolved] Fixed Top Bar – Pushing Down Body

Home Forums Support Fixed Top Bar – Pushing Down Body

  • This topic has 3 replies, 2 voices, and was last updated 4 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1243264
    Anthony

    I’m trying to figure out the best way to use a Hook to create a fixed mobile top-bar.

    I can’t seem to get the body to push down properly.

    SO far I’ve landed on this:

    @media only screen and (max-width: 768px)
    {
    body::before
    {
    display:block;
    content: ”;
    height:50px;
    }
    }

    .app-top-bar
    {
    position: fixed;
    top: 0;
    left: 0;
    display:block;
    height: 50px;
    width: 100%;
    z-index: 9999999999999999;
    }

    Any other ways around this?

    #1243605
    Tom
    Lead Developer
    Lead Developer

    What about this?:

    body {
        padding-top: 50px;
    }
    #1244840
    Anthony

    Thanks!

    #1245557
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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