:target {
scroll-margin-block-start: 2em;
}
Adds a nice bit of breathing room to stuff that's anchored via URL like example.com/#my-element
:target {
scroll-margin-block-start: 2em;
}
Adds a nice bit of breathing room to stuff that's anchored via URL like example.com/#my-element