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.
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 strategiesConclusion4 Comments
Sort: