Since a position: fixed element is taken out of flow, other element will position themselves as if the position: fixed weren't there, so i your case your second need a margin equal to the height of the first