WordPress.org

Ready to get started?Download WordPress

Forums

Ridizain
[resolved] fix navbar to top (4 posts)

  1. sup3rhero
    Member
    Posted 6 months ago #

    I have managed to move the navbar to the top of the page, above the header image, but when I fix it with position: fixed it ends up behind the page content and also the background of the navbar disappears.

  2. stacyduval
    Contributor Day Volunteer
    Posted 6 months ago #

    Try using the z-index property on the navbar.

    The z index property specifies the stack order of the element.

    Cheers, Stacy

  3. sup3rhero
    Member
    Posted 6 months ago #

    Thank you, I will try that later! Any idea what could have happened to the background though? The navbar is dark grey, but when I fix it, the background won't stick.

  4. sup3rhero
    Member
    Posted 6 months ago #

    Thank you that worked! it even kept the background colour now, too :)

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.