cds-snc / resources-ressources

Learning Resources / Ressources d'apprentissage
MIT License
3 stars 1 forks source link

[Jump-to] Add top padding when jumping to a particular section with anchor links #293

Closed anikbrazeau closed 1 year ago

anikbrazeau commented 2 years ago

I wonder if it'd be possible to add some space/padding to the text when jumping to a particular section? For ease of readability, maybe it could be aligned with the start of "On this page" rather than the very top of the browser window?

Screen Shot 2022-09-21 at 9 59 16 PM

Originally posted by @anikbrazeau in https://github.com/cds-snc/resources-ressources/issues/239#issuecomment-1254416699

anikbrazeau commented 1 year ago

Linked to #295

realdylanzheng commented 1 year ago

Heading now aligned with "On this page" in staging