Posts Tagged: Fixed Header

Changing the Viewport Height When Link-Jumping

When clicking on a #link that jumps to a particular part of a page, sometimes we need to take into account the viewport. If we have a fixed header, say 80px in height, our content will be overlapped by the header. To fix this, we can use some CSS magic: .jump_link:before { height: 80px; /*