DEV Community

CSS

Cascading Style Sheets (CSS) is a simple language for adding style (e.g., fonts, colors, spacing) to HTML documents. It describes how HTML elements should be displayed.

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
The 10 Best New CSS Features in 2026 Already Supported in All Major Browsers

The 10 Best New CSS Features in 2026 Already Supported in All Major Browsers

5
Comments
16 min read
When Your Settings Modal Looks Perfect But Traps Focus Behind Itself

When Your Settings Modal Looks Perfect But Traps Focus Behind Itself

Comments
4 min read
Tailwind + Vite: the small config that finally clicked

Tailwind + Vite: the small config that finally clicked

Comments
1 min read
Design tokens are a contract, not a color list

Design tokens are a contract, not a color list

Comments
1 min read
Two invisible bytes wiped 130 CSS colour tokens on 462 pages, and every check passed

Two invisible bytes wiped 130 CSS colour tokens on 462 pages, and every check passed

Comments
5 min read
View Transitions: animate any DOM change with one call

View Transitions: animate any DOM change with one call

Comments
5 min read
Tailwind Safe Area Insets: Bottom Bars, FABs and Toasts

Tailwind Safe Area Insets: Bottom Bars, FABs and Toasts

Comments
15 min read
A Tailwind CSS theme from design tokens in one command

A Tailwind CSS theme from design tokens in one command

Comments
5 min read
Building Single-File HTML Templates: Clean Code Without the Framework Overhead

Building Single-File HTML Templates: Clean Code Without the Framework Overhead

Comments
1 min read
How I Compress Website Images with Squoosh for Blazing-Fast Page Speeds

How I Compress Website Images with Squoosh for Blazing-Fast Page Speeds

Comments
1 min read
Why I Hand-Code Lightweight, Single-File HTML Templates for Maximum Speed

Why I Hand-Code Lightweight, Single-File HTML Templates for Maximum Speed

Comments
1 min read
CSS Grid Explained: Two-Dimensional Layout, Finally Easy

CSS Grid Explained: Two-Dimensional Layout, Finally Easy

Comments
2 min read
CSS Flexbox Explained: Layout Without the Guesswork

CSS Flexbox Explained: Layout Without the Guesswork

1
Comments
2 min read
100vh Mobile Fix: When to Use dvh, svh or lvh in Tailwind

100vh Mobile Fix: When to Use dvh, svh or lvh in Tailwind

Comments
15 min read
Sass Explained: CSS With Variables, Nesting, and Logic

Sass Explained: CSS With Variables, Nesting, and Logic

Comments
2 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.