on-internet
← Community

How can I make a div stick to the top of the screen once it's been scrolled to?

Stack Overflow ·

I would like to create a div, that is situated beneath a block of content but that once the page has been scrolled enough to contact its top boundary, becomes fixed in place and scrolls with the page.

Comments

Sign in or sign up to comment and upvote.

No comments yet.