CSS Scroll Snap
Use CSS Scroll Snap to create smooth, snap-aligned scrolling experiences for carousels and galleries—no JavaScript needed.
Thoughts / 115 posts since 2015
Notes, essays, and the odd announcement on design, code, and building things, written down whenever a thought wouldn't let go.
Use CSS Scroll Snap to create smooth, snap-aligned scrolling experiences for carousels and galleries—no JavaScript needed.
Explore several practical methods to eliminate unwanted whitespace between inline-block elements in HTML and CSS, from comment hacks to font-size resets.
A clever CSS trick using the :target pseudo-class to style elements based on the URL hash—great for toggling content like menus or sections without JavaScript.
An overview of the HTML <output> tag, used for displaying calculated values from user inputs—complete with a working example and supported attributes.
A quick overview of the HTML <progress> element—perfect for showing task completion, with styling tips using WebKit pseudo-elements.
A guide to the HTML <meter> element—ideal for displaying values within a known range, with styling options and examples for various states.