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.
how I make my templates easy to reskin (probably overthought this)

how I make my templates easy to reskin (probably overthought this)

Comments
2 min read
text-box-trim is the best CSS feature in years and nobody's using it yet

text-box-trim is the best CSS feature in years and nobody's using it yet

3
Comments 1
3 min read
The receipt CSS everyone copies, @page { size: 80mm auto }, does nothing in Chrome

The receipt CSS everyone copies, @page { size: 80mm auto }, does nothing in Chrome

1
Comments 2
5 min read
StyleX won CSS-in-JS because AI agents can read it

StyleX won CSS-in-JS because AI agents can read it

3
Comments
3 min read
Document Picture-in-Picture is a window, not a video

Document Picture-in-Picture is a window, not a video

Comments 1
4 min read
First Post — I’m a Video Guy Who Wanted My FAQ Page to Look Like a VCR

First Post — I’m a Video Guy Who Wanted My FAQ Page to Look Like a VCR

1
Comments 1
1 min read
I Tested html2canvas, html-to-image and modern-screenshot on the Same Card

I Tested html2canvas, html-to-image and modern-screenshot on the Same Card

5
Comments
10 min read
Building a CSS Gradient Generator in the Browser — Linear, Radial, and Conic

Building a CSS Gradient Generator in the Browser — Linear, Radial, and Conic

2
Comments
2 min read
The three-state dark mode toggle is the correct answer

The three-state dark mode toggle is the correct answer

2
Comments
3 min read
[FRONTEND] Tipos de Component/Libraries

[FRONTEND] Tipos de Component/Libraries

1
Comments
3 min read
Five traps in a right-to-left Farsi shop, and the tests that guard them

Five traps in a right-to-left Farsi shop, and the tests that guard them

2
Comments
6 min read
E-Commerce Product Listing Website using HTML, CSS, and JavaScript.

E-Commerce Product Listing Website using HTML, CSS, and JavaScript.

Comments
1 min read
Do you still need SCSS? What Next.js and Angular 22.2 actually do with native CSS nesting

Do you still need SCSS? What Next.js and Angular 22.2 actually do with native CSS nesting

4
Comments 1
10 min read
How to self-host Google Fonts (and why your site should)

How to self-host Google Fonts (and why your site should)

Comments
12 min read
iOS zoomed my app in and never zoomed back out. So I stopped grepping CSS and asked the browser

iOS zoomed my app in and never zoomed back out. So I stopped grepping CSS and asked the browser

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