The post layout consists of a 2-column * 4-row grid. Each item within the post is manually placed using the and properties. The user avatar is positioned in the first column and spans the first two rows. Using odd values for the grid rows is a form of fine-tuning for the UI.

β€’5m read timeβ€’From ishadeed.com
Post cover image
Table of contents
Using CSS grid for the post layoutSVG for the thread linesInline CSS variables for CSS gridOverflow wrappingThe use of dynamic viewport unitsDefensive CSS strategiesConclusion
4 Comments

Sort: