This post discusses anchor links and how to enhance them using CSS. It covers the basics of creating anchor links, enabling smooth scrolling, adding scroll margin, targeted page anchor styles, and more. It also explores nested scrolling and the difference between scroll margin and scroll padding. Overall, it provides a comprehensive guide to making anchor links awesome.

7m read timeFrom codersblock.com
Post cover image
Table of contents
A Humble Anchor LinkAdding Smooth ScrollingAdding Scroll MarginAdding Targeted Page Anchor StylesFancier Target StylingNested ScrollingScroll Margin vs. Scroll PaddingScroll Into View with JavaScriptScrollIntoView() OptionsBehind-the-Scenes Notes
6 Comments

Sort: