CSS

1291 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