Sidenotes with CSS anchor positioning 0 ▲ Vincent Bernat 2 hours ago · 6 min read1126 words · Tech · hide · 0 comments I am a heavy user of sidenotes:1 they keep optional content next to the text instead of sending the reader to the bottom of the page and back. Tufte CSS renders them without JavaScript but only accepts inline content. CSS anchor positioning, now supported by recent browsers,2 is an elegant alternative. Sidenotes can hold several blocks, still without JavaScript, and fall back below the paragraph referencing them on narrow viewports and older browsers. In 2023, Eric Meyer demonstrated this technique in “Nuclear Anchored Sidenotes.” The main improvement over other solutions is that the notes can sit anywhere in the HTML document. You can place them after the paragraph referencing them, as regular block elements for text browsers, screen readers, feed readers, and reader mode to render them properly: Rendering in Lynx, a text browser When the viewport is too narrow or the browser does not support CSS anchor positioning, you can style them so the reader can skip them or glance at them… No comments yet. Log in to reply on the Fediverse. Comments will appear here.