When you apply position: fixedor position: absolute, an element is removed from the document flow, so the elements that appear after that consider it as non-existent. That's why your divjumps up. To fix this, apply margin-topthat is equal to your header height - http://jsfiddle.net/2xjES/
source
share