Use CSS Scroll Margin to Give Content Breathing Room
lessonDuration 1m 49sFree
In this lesson, we take a look at how you can use CSS scroll-margin-top to give your content breathing room when using anchor scrolling. Combine this with CSS variables and calc to combat fixed-position nav layouts.