The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Disappearing header. Re: Disappearing header.


You need to use position:fixed on your header for it to stay in the position in the screen and not move whilst scrolling. Make sure it has a higher z-index aswell so it doesn’t drop and hide beneath other elements.

Position:absolute removes it from the document flow and allows you to place an element anywhere you want on the page in a pixel-perfect way – but it will stay in that exact position.