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.
10 Relevant Ways to Center a div

10 Relevant Ways to Center a div

1
Comments
4 min read
Learning CSS As If You Built It Yourself

Learning CSS As If You Built It Yourself

Comments
11 min read
Advanced Link Styling: text-underline-offset

Advanced Link Styling: text-underline-offset

Comments
4 min read
The three physics of UI: glass, flat, and retro

The three physics of UI: glass, flat, and retro

3
Comments
8 min read
Styling the scrollbar in all modern browsers

Styling the scrollbar in all modern browsers

Comments
3 min read
Building an Interactive Virtual Courtroom Website

Building an Interactive Virtual Courtroom Website

Comments
2 min read
I built a gem that finds unused CSS classes in Rails apps — here's the interesting problem I had to solve

I built a gem that finds unused CSS classes in Rails apps — here's the interesting problem I had to solve

1
Comments 1
3 min read
CSS Animations & Transitions: A Visual Guide (2026)

CSS Animations & Transitions: A Visual Guide (2026)

Comments 1
4 min read
Creating the Perfect Sticky Website Header

Creating the Perfect Sticky Website Header

Comments
3 min read
Elegant Trimming of Multiline Text (line-clamp)

Elegant Trimming of Multiline Text (line-clamp)

Comments
3 min read
Learning TailwindCSS As If You Built It Yourself

Learning TailwindCSS As If You Built It Yourself

Comments
11 min read
Customization of Interactive Details and Summary Tags

Customization of Interactive Details and Summary Tags

Comments
4 min read
Quick Checkbox Styling with accent-color

Quick Checkbox Styling with accent-color

2
Comments
3 min read
Centering in CSS: all methods from the 1990s to the present day

Centering in CSS: all methods from the 1990s to the present day

1
Comments
4 min read
Taming typography specificity wars with CSS layers and bound aliases

Taming typography specificity wars with CSS layers and bound aliases

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