June 16, 201214 yr Hi there, im developing a site on my localhost, and i have the nav bar about 1/4 of the way down the page, underneath the logo. I would like the navbar to stick to the top of the page when the user scrolls past it. A bit like what facebook have, but my navbar isn't stuck at the top, its about 200px down the page. Cheers Ash
June 16, 201214 yr You can use JavaScript to tell how far the page has scrolled and then based on that display the header to stay on top.
Create an account or sign in to comment