Stop fixed navigations covering content on scroll

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUIWeb Design7 min

About this video

Shows how a fixed navigation can cover content when anchor links jump to sections, and how scroll-padding fixes it without hard-coded magic numbers. Aimed at developers who already write CSS.

What you’ll learn

  • Apply scroll-padding so anchor targets clear a fixed navigation
  • Replace magic numbers with values derived from the page layout