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.
Are You a CSS Developer or a CSS Expert? 9 Tests I Failed Styling a 12,400-Line Photo Editor

Real-world CSS bugs from a 12k-line app

Are You a CSS Developer or a CSS Expert? 9 Tests I Failed Styling a 12,400-Line Photo Editor

39
Comments 74
16 min read
Printable LEGO instructions from a three.js viewer: cqw units, headless Edge and a page count

Printable LEGO instructions from a three.js viewer: cqw units, headless Edge and a page count

1
Comments
4 min read
Spec tables on product pages: keep them as real tables, and make them work on a phone

Spec tables on product pages: keep them as real tables, and make them work on a phone

Comments
4 min read
overflow: hidden breaks position: sticky. overflow: clip doesn't.

overflow: hidden breaks position: sticky. overflow: clip doesn't.

5
Comments
4 min read
Tap Targets Are Geometry, Not Taste: What WCAG 2.2's 24 Pixels Actually Measures

Tap Targets Are Geometry, Not Taste: What WCAG 2.2's 24 Pixels Actually Measures

Comments
9 min read
Fix html2canvas 'Attempting to parse an unsupported color function "oklch"' (Tailwind CSS v4)

Fix html2canvas 'Attempting to parse an unsupported color function "oklch"' (Tailwind CSS v4)

Comments
3 min read
Build a Sticky Header and Hero Section From Scratch

Build a Sticky Header and Hero Section From Scratch

Comments
27 min read
Our most used text colour passes WCAG at 6.29 to 1, and APCA says it is only legible at 42px

Our most used text colour passes WCAG at 6.29 to 1, and APCA says it is only legible at 42px

Comments
5 min read
One of our 76 pages has animations on it, and the 45-leaf one in the hero is not in the list

One of our 76 pages has animations on it, and the 45-leaf one in the hero is not in the list

Comments
6 min read
I Was Shipping Five Font Files. One Variable Font Replaced Them All.

I Was Shipping Five Font Files. One Variable Font Replaced Them All.

6
Comments 1
6 min read
The rules I put in every AI website prompt (from a 24-design gallery)

The rules I put in every AI website prompt (from a 24-design gallery)

Comments
2 min read
Stop the jump when a web font loads, measured with three Google fonts

Stop the jump when a web font loads, measured with three Google fonts

Comments
5 min read
AI Loves Purple: Most and Least Used AI Colors

AI Loves Purple: Most and Least Used AI Colors

Comments
13 min read
How I Tamed a Bloated CSS File with a Small Refactor

How I Tamed a Bloated CSS File with a Small Refactor

Comments
3 min read
PageSpeed mobile: como levei um site HTML estático de 64 para 97

PageSpeed mobile: como levei um site HTML estático de 64 para 97

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