Use CSS Scroll Margin to Give Content Breathing Room

InstructorJhey Tompkins

Share this video with your friends

Send Tweet

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.