Sticky Header CSS Only Code- One line css code for sticky header, try this code-
nav {position: sticky; top: 0;}
// nav is html tag like use id and class
Sticky Header CSS Only Code- One line css code for sticky header, try this code-
nav {position: sticky; top: 0;}
// nav is html tag like use id and class