← All elements
<div class="doc"><aside><b>Contents</b><a href="#x">Intro</a><a href="#x">Setup</a><a href="#x">Usage</a></aside><main><h4>Intro</h4><p>The list on the left stays put while you scroll.</p><h4>Setup</h4><p>No libraries, no build, just a few lines of CSS.</p><h4>Usage</h4><p>Drop it next to any long article.</p><h4>More</h4><p>Keep scrolling to see it hold its place.</p></main></div>About this layout
Sticky Table of Contents Sidebar is a pure CSS layout made with HTML and CSS only, by @admin. Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.