How to Create Sticky Menu Bar

How to create sticky header using CSS? To create sticky menu we need to make sure the div must be at the top of the page and stays there when page gets scroll. How do we do that? Make div Position Fixed Define position from TOP. position:fixed; top:0px; Let’s check the full example below <html> …