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.
I almost added a PDF library. A print stylesheet was enough.

I almost added a PDF library. A print stylesheet was enough.

Comments
2 min read
Stress-test a card with longer content before adding breakpoints

Stress-test a card with longer content before adding breakpoints

Comments
2 min read
A flex child that is allowed to shrink overflows from its centre, so the title left the top of the screen and the button left the bottom

A flex child that is allowed to shrink overflows from its centre, so the title left the top of the screen and the button left the bottom

Comments
4 min read
Build a fluid heading from two sizes and two viewport widths

Build a fluid heading from two sizes and two viewport widths

Comments
2 min read
Stop Using a JS Masonry Library. CSS Grid Lanes Does It Natively.

Stop Using a JS Masonry Library. CSS Grid Lanes Does It Natively.

8
Comments
5 min read
CSS Concepts Beginners Should Learn First: A Practical Learning Roadmap

CSS Concepts Beginners Should Learn First: A Practical Learning Roadmap

Comments
8 min read
A Free Random Color Generator I Built for Designers and Developers

A Free Random Color Generator I Built for Designers and Developers

Comments
3 min read
A webmanifest cannot read a CSS variable, so our brand colour is spelled twice: once as OKLCH and once as hex

A webmanifest cannot read a CSS variable, so our brand colour is spelled twice: once as OKLCH and once as hex

1
Comments
7 min read
Building a Personal Portfolio Website with HTML, CSS, and JavaScript.

Building a Personal Portfolio Website with HTML, CSS, and JavaScript.

Comments
2 min read
Reserve image space on your landing page so the button does not jump: a layout shift check

Reserve image space on your landing page so the button does not jump: a layout shift check

Comments 3
2 min read
Why Nastaliq Urdu Text Breaks on the Web — and Practical Fixes for Developers

Why Nastaliq Urdu Text Breaks on the Web — and Practical Fixes for Developers

Comments
3 min read
Responsive 2-Column Form Design: Handling Error Messages Without Layout Shifts Across Devices

Responsive 2-Column Form Design: Handling Error Messages Without Layout Shifts Across Devices

Comments
11 min read
Firefox PDF Guide: Viewer, Annotations, Print to PDF, and Print CSS

Firefox PDF Guide: Viewer, Annotations, Print to PDF, and Print CSS

Comments
3 min read
Firefox DevTools CSS Inspector: Grid Overlay, Flexbox Debug, Changes Tracking

Firefox DevTools CSS Inspector: Grid Overlay, Flexbox Debug, Changes Tracking

Comments
4 min read
Dark Mode in Firefox: OS Settings, CSS, and Extensions (Developer and User Guide)

Dark Mode in Firefox: OS Settings, CSS, and Extensions (Developer and User Guide)

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