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
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
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
I pressed select-all and copy on all 79 of our pages: 393 KB of words and 5.3 MB of markup

I pressed select-all and copy on all 79 of our pages: 393 KB of words and 5.3 MB of markup

Comments
4 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
I pressed Tab through all 5,495 stops on our site: the order is perfect and 373 of them show no focus ring

I pressed Tab through all 5,495 stops on our site: the order is perfect and 373 of them show no focus ring

Comments
6 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 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
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
Our 76 pages print to 496 sheets of A4, and the plan we recommend is invisible on one of them

Our 76 pages print to 496 sheets of A4, and the plan we recommend is invisible on one of them

Comments
6 min read
I grepped all 38 pages of our site for accessibility: one h1 each, 1,091 links with names, and a focus ring at 1.82:1

I grepped all 38 pages of our site for accessibility: one h1 each, 1,091 links with names, and a focus ring at 1.82:1

Comments
6 min read
text-overflow: ellipsis Does Nothing in a Flex Row? Look at min-width

text-overflow: ellipsis Does Nothing in a Flex Row? Look at min-width

1
Comments 1
4 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
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
👋 Sign in for the ability to sort posts by relevant, latest, or top.