1

I have a fixed header element which stays fixed to the top of the page when a user scrolls down. I've created this jsfiddle to demonstrate how this looks.

How can I make the content element scroll over the top of the header element instead of scrolling underneath? I tried adding z-index: 99999; to content but this had no effect.

1 Answer 1

1

Minor modification: add

z-index:-1;

to header { }

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the very simple solution! appreciated (apparently I can't accept until 7 minutes time)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.