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.
Why your CSS gradient looks muddy in the middle (and the one-line fix)

Why your CSS gradient looks muddy in the middle (and the one-line fix)

1
Comments
2 min read
Base64 makes your image 33% bigger. Here is when that is still the right call

Base64 makes your image 33% bigger. Here is when that is still the right call

Comments
4 min read
How to Convert Legacy CSS to Tailwind Utility Classes (Without Manual Guesswork)

How to Convert Legacy CSS to Tailwind Utility Classes (Without Manual Guesswork)

Comments
2 min read
Our stylesheet declares the same 72 variables twice, and the second copy hides behind a browser sniff dressed as a feature query

Our stylesheet declares the same 72 variables twice, and the second copy hides behind a browser sniff dressed as a feature query

Comments
5 min read
Chrome composites 10 layers on our static FAQ page, and an invisible word is responsible for three of them

Chrome composites 10 layers on our static FAQ page, and an invisible word is responsible for three of them

Comments
5 min read
Our public pages hold 5,693 stacking contexts and nine z-indexes, and the drawings that make most of them ignore z-index completely

Our public pages hold 5,693 stacking contexts and nine z-indexes, and the drawings that make most of them ignore z-index completely

Comments
5 min read
We deleted a 308-line unlock dialog and replaced it with a scroll and three pulses

We deleted a 308-line unlock dialog and replaced it with a scroll and three pulses

Comments
6 min read
I got tired of resizing my browser, so I built Samestate

I got tired of resizing my browser, so I built Samestate

1
Comments
2 min read
CSS text-box: text finally centered in its box

CSS text-box: text finally centered in its box

Comments
4 min read
CSS Transitions Skip display: none. transition-behavior Fixes That.

CSS Transitions Skip display: none. transition-behavior Fixes That.

5
Comments 1
6 min read
How to setup Laravel 7 with tailwind and purgeCss

How to setup Laravel 7 with tailwind and purgeCss

Comments
5 min read
Our welcome screen is covered by a CSS rule that deletes itself after three seconds

Our welcome screen is covered by a CSS rule that deletes itself after three seconds

Comments
5 min read
A saved localStorage value made our CSS check look wrong

A saved localStorage value made our CSS check look wrong

Comments
2 min read
Why a2ui's JSON-Driven Layout Schema Breaks Down in Production Modal Stacks

Why a2ui's JSON-Driven Layout Schema Breaks Down in Production Modal Stacks

Comments
3 min read
Can CSS Affect Website Performance? A Beginner-Friendly Guide to Writing Efficient CSS

Can CSS Affect Website Performance? A Beginner-Friendly Guide to Writing Efficient CSS

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