I want the “+01” element to follow the image div while someone is scrolling, but I don’t know how to make it so that it starts moving downwards before it hits the top of the page. Is there a simple solution to this? Answer If I understand your question correctly, I think you may be aiming for sticky position. More
Tag: sticky
How to get a Sticky header on website using Javascript?
Tried to get a sticky header onto my website using javascript, but doesn’t seem to be working. Here is the html code and javascript related to this section: Here is the CSS related to the sticky header: Please help! Answer Step 1. Use header.sticky instead of header .sticky (remove space) Step 2. Add the following style to header.sticky How TO