Skip to content
Advertisement

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

Advertisement