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 Font Is Loaded and the Text Is Still Wrong: Three Questions That Find the Bug

The Font Is Loaded and the Text Is Still Wrong: Three Questions That Find the Bug

Comments
5 min read
Five of our colour tokens were never registered as colours, so eight classes using them match nothing in the stylesheet

Five of our colour tokens were never registered as colours, so eight classes using them match nothing in the stylesheet

Comments
4 min read
CSS gap decorations: lines between grid items

CSS gap decorations: lines between grid items

Comments
4 min read
A rent receipt generator in one HTML file: print CSS, localStorage, and the bug I shipped

A rent receipt generator in one HTML file: print CSS, localStorage, and the bug I shipped

Comments
3 min read
BeeLadybug: born from a daydream

Built on the Single Responsibility Principle

BeeLadybug: born from a daydream

33
Comments 6
2 min read
Orthotect: Deterministic Interface Engineering & Runtime Gates for AI Coding Agents

Orthotect: Deterministic Interface Engineering & Runtime Gates for AI Coding Agents

Comments
1 min read
I Built a Free One-Page Restaurant Template in Pure HTML/CSS

I Built a Free One-Page Restaurant Template in Pure HTML/CSS

1
Comments 1
1 min read
Why a Search Box Shrinks to 2px When You Add container-type

Why a Search Box Shrinks to 2px When You Add container-type

Comments
5 min read
Scroll anchoring is Baseline: content stops jumping

Scroll anchoring is Baseline: content stops jumping

Comments
5 min read
A printable prop firm rule checklist in vanilla JS, with no build step

A printable prop firm rule checklist in vanilla JS, with no build step

Comments
4 min read
How to Add a Border in CSS Without Changing Element Size

How to Add a Border in CSS Without Changing Element Size

Comments
2 min read
Our machine-readable source of truth for colour holds 40 hex values and shares exactly one with the app: white

Our machine-readable source of truth for colour holds 40 hex values and shares exactly one with the app: white

Comments
5 min read
Responsive type and spacing by changing only the root font size

Responsive type and spacing by changing only the root font size

1
Comments 2
4 min read
A short :has() selector can outweigh the component it was never meant to touch

A short :has() selector can outweigh the component it was never meant to touch

1
Comments
4 min read
SVG to JSX and CSS Data URI: What Actually Breaks When You Inline Icons

SVG to JSX and CSS Data URI: What Actually Breaks When You Inline Icons

1
Comments 2
5 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.