Jump to content

How do I make a webpage header sticky?

Diave Inoz

Recommended Posts

  • 2 weeks later...
On 6/2/2023 at 2:13 AM, Ingolme said:

CSS can do it, it's pretty simple. You can read about the CSS position:sticky; in this tutorial page: https://www.w3schools.com/css/css_positioning.asp

Sorry for my late reply but I was expecting an email when when someone responded to my post. Regarding my problem...I saw the tag "<div class="fixed-header"> on another example of how to put a sticky header on a webpage, and that worked. :)
I'm now having trouble with "jump to" links in the header not working properly, so that'll probably be another post for this forum. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...