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.
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
What building wedding invitation websites taught us about the phones guests really use

What building wedding invitation websites taught us about the phones guests really use

Comments
3 min read
A Free Landing Page Template With Zero Dependencies (HTML/CSS/JS Only)

A Free Landing Page Template With Zero Dependencies (HTML/CSS/JS Only)

Comments
1 min read
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

58
Comments 125
16 min read
I built a CSS shadow generator. Figuring out deployment took longer than writing the actual code.

I built a CSS shadow generator. Figuring out deployment took longer than writing the actual code.

Comments
3 min read
Building a 100/100 Lighthouse Static Website with GitHub Pages, Cloudflare & Vanilla Tech

Building a 100/100 Lighthouse Static Website with GitHub Pages, Cloudflare & Vanilla Tech

Comments
3 min read
CSS style queries: one variable, every style

CSS style queries: one variable, every style

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