This post explores how to create modern CSS layouts without the need for a framework. It introduces four CSS classes for different layout approaches, including fluid layouts and repeating layouts. The article also covers the use of cascade layers and CSS variables for greater control over the layouts.

20m read timeFrom smashingmagazine.com
Post cover image
Table of contents
What We’re MakingSetup: Cascade Layers & CSS VariablesRepeating Grid And Flex LayoutsFluid Grid And Flex LayoutsOptional: Subgrid UtilityDemoConclusion: Write Once And Repurpose

Sort: