Home › Forums › CSS › Disappearing header. › Re: Disappearing header.
June 13, 2013 at 6:55 pm
#138656
aLtikal
Participant
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.