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.
A 5.86 MB font sat in my app for three months. No CSS rule ever referenced it.

A 5.86 MB font sat in my app for three months. No CSS rule ever referenced it.

Comments
7 min read
Constraining agent CSS to design tokens (without pasting the whole theme)

Constraining agent CSS to design tokens (without pasting the whole theme)

1
Comments
4 min read
Goodbye :nth-child! How Modern CSS sibling-index() Works Under the Hood

Goodbye :nth-child! How Modern CSS sibling-index() Works Under the Hood

Comments
1 min read
Fluid sizes with CSS clamp(): practical examples you can copy

Fluid sizes with CSS clamp(): practical examples you can copy

Comments
3 min read
Pair agent UI work with visual regression before you trust green CI

Pair agent UI work with visual regression before you trust green CI

1
Comments
4 min read
A football club website in plain HTML and Tailwind CSS 4, with a 44-line build script

A football club website in plain HTML and Tailwind CSS 4, with a 44-line build script

Comments
6 min read
Exporting a Solo site: fixing fonts, image paths and forms by hand

Exporting a Solo site: fixing fonts, image paths and forms by hand

Comments
6 min read
Convert OKLCH to HEX in the Browser: A Colour Picker That Never Uploads

Convert OKLCH to HEX in the Browser: A Colour Picker That Never Uploads

Comments
3 min read
Cute Animals Made with Pure CSS 🐾

Features interactive CodePen embeds

Cute Animals Made with Pure CSS 🐾

76
Comments 45
2 min read
Construire son propre zoom produit : les trois détails qui comptent

Construire son propre zoom produit : les trois détails qui comptent

1
Comments
2 min read
🚦 Traffic Lights Project!

🚦 Traffic Lights Project!

Comments
1 min read
pointer-events: none doesn't disable an element. It hands the press to whatever is underneath.

pointer-events: none doesn't disable an element. It hands the press to whatever is underneath.

3
Comments
6 min read
Every page on our site but one is styled by a class called legal, and three of them are legal pages

Every page on our site but one is styled by a class called legal, and three of them are legal pages

Comments
5 min read
Will Your Emoji Favicon Vanish in Dark Mode? I Measured 24 Emoji in Real Chrome Tabs

Will Your Emoji Favicon Vanish in Dark Mode? I Measured 24 Emoji in Real Chrome Tabs

Comments 2
8 min read
Ảnh mà Google không thấy: CSS background, lazy load sai cách và cách audit thẻ img

Ảnh mà Google không thấy: CSS background, lazy load sai cách và cách audit thẻ img

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