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.
CSS Grid vs Flexbox: When to Use Which (With Layout Examples)

CSS Grid vs Flexbox: When to Use Which (With Layout Examples)

Comments 1
2 min read
A Tailwind CSS theme from design tokens in one command

A Tailwind CSS theme from design tokens in one command

1
Comments
5 min read
Stop Writing JS to Detect a Stuck Header. `scroll-state()` Fixes It.

Stop Writing JS to Detect a Stuck Header. `scroll-state()` Fixes It.

8
Comments
5 min read
How I Made My Client's Website Load in 1.5 Seconds on Slow 4G in Pakistan - A Real Performance Case Study

How I Made My Client's Website Load in 1.5 Seconds on Slow 4G in Pakistan - A Real Performance Case Study

Comments
6 min read
CSS Grid Explained: Two-Dimensional Layout, Finally Easy

CSS Grid Explained: Two-Dimensional Layout, Finally Easy

Comments
2 min read
CSS Flexbox Explained: Layout Without the Guesswork

CSS Flexbox Explained: Layout Without the Guesswork

1
Comments
2 min read
Sass Explained: CSS With Variables, Nesting, and Logic

Sass Explained: CSS With Variables, Nesting, and Logic

Comments
2 min read
Bootstrap Explained: The Framework That Taught the Web Responsive Design

Bootstrap Explained: The Framework That Taught the Web Responsive Design

Comments
2 min read
Tailwind CSS Explained: Styling Without Leaving Your HTML

Tailwind CSS Explained: Styling Without Leaving Your HTML

Comments
2 min read
CSS Explained: How Websites Get Their Look

CSS Explained: How Websites Get Their Look

Comments
2 min read
"I Can't Reach the Button" Is Unreproducible on Your Desktop, and `100vh` Is Why

"I Can't Reach the Button" Is Unreproducible on Your Desktop, and `100vh` Is Why

1
Comments 3
4 min read
Day 6: Building Facebook & Instagram Pages with HTML and CSS 🚀

Day 6: Building Facebook & Instagram Pages with HTML and CSS 🚀

Comments
1 min read
My Angular Flex-Layout migration compiled. The spacing was wrong.

My Angular Flex-Layout migration compiled. The spacing was wrong.

Comments
3 min read
I made a web odometer that carries like the real one

I made a web odometer that carries like the real one

Comments 1
2 min read
Why Use box-sizing: border-box?

Why Use box-sizing: border-box?

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