Stop sticky headers covering headings
When a link jumps to a heading on the page (a table of contents, for example), the heading lands below your sticky header instead of behind it.
html {
scroll-padding-top: 100px;
}
Good to know
Set 100px to your header’s height plus a little space.
In these packs
- Design touches: Small front-end touches: a reading progress bar, an announcement bar, a WhatsApp button, accessibility fixes.