CSS

1283 bookmarks
Custom sorting
The :empty pseudo-class in CSS
The :empty pseudo-class in CSS
One of my favorite not-so-new aspects of CSS is the :empty pseudo-class. You can use this to target elements that have no children—either child elements or whitespace and text nodes—and style them differently than they would be otherwise. For example, imagine you have some CSS to layout items in a row using flexbox… .grid-flex { display: flex; gap: 1rem; } .grid-flex div { background-color: #ffdc00; border: 1px solid #665800; color: #665800; padding: 1rem 2rem; text-align: center; } And a row of items generated from an API or database or something.
·gomakethings.com·
The :empty pseudo-class in CSS
CSS Wrapped 2024
CSS Wrapped 2024
Join the Chrome DevRel team and a skateboarding Chrome Dino on a journey through the latest CSS launched for Chrome and the web platform in 2024.
·chrome.dev·
CSS Wrapped 2024
Pure CSS Halftone Effect in 3 Declarations – Frontend Masters Boost
Pure CSS Halftone Effect in 3 Declarations – Frontend Masters Boost
A halftone is a pattern of dots that vary in size and spacing. It's a printing technique that you normally don't see, but blown up in size, is a cool aesthetic. This is a deep dive on how it can be done in CSS alone, starting quite simply!
·frontendmasters.com·
Pure CSS Halftone Effect in 3 Declarations – Frontend Masters Boost
CSS min() All The Things — Smashing Magazine
CSS min() All The Things — Smashing Magazine
Victor Ayomipo experiments with the CSS `min()` function, exploring its flexibility with different units to determine if it is the be-all, end-all for responsiveness. Discover the cautions he highlights against dogmatic approaches to web design based on his findings.
·smashingmagazine.com·
CSS min() All The Things — Smashing Magazine
Building the Perfect Logo Strip - 9elements
Building the Perfect Logo Strip - 9elements
We've all been there: you're working on a website and need to display a row of logos—clients, partners, sponsors—you name it. However, logos come in all shapes and sizes, and making them look good together can be quite challenging. How do you get...
·9elements.com·
Building the Perfect Logo Strip - 9elements
CSS Grid Areas
CSS Grid Areas
A fresh look at the CSS grid template areas and how to take advantage of its full potential today.
·ishadeed.com·
CSS Grid Areas
It’s Time To Talk About “CSS5” — Smashing Magazine
It’s Time To Talk About “CSS5” — Smashing Magazine
Have you ever wondered what happened after CSS3? It’s common knowledge that we never saw CSS4 come after it, yet we have a plethora of new features that have no similar way of defining when they were introduced. The W3C CSS-Next community group is actively searching for better approaches for how we describe the evolution of CSS over time and identify feature sets as effectively as we did with CSS3 way back in 2009 — and you can help.
·smashingmagazine.com·
It’s Time To Talk About “CSS5” — Smashing Magazine