Learn about margin collapse, a fundamental concept of CSS layout. See visual examples of when margin collapse happens, and when it doesn't.
Tag Archives: css
Better Typography with Font Variants
Learn how to use font variants, including ligatures, caps, numerals and alternate glyphs, to create more precise, beautiful typography on the web.
Advanced CSS-Only HTML Form Styling
Learn about selectors both new and old that you can use to style form inputs based on requirement, validity and more.
Unlocking the Benefits of CSS Custom Properties
Overview of the benefits of CSS variables and helpful tips and tricks for working with them.
Component Variants with Scoped CSS Variables
Scoped CSS variables provide an incredibly easy and clean way to create variants of common interface components like buttons.
Live Theming with CSS Variables
CSS variables are opening up exciting new possibilities, like creating a very performant live theme editor that dynamically updates CSS values.
Contextual Callouts with CSS Grid
Using the power of CSS grid, it is now easier than ever before to create callouts — small paragraphs that sit next to the primary text and offer additional information.