CSS

1289 bookmarks
Custom sorting
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
Self-Modifying Variables: the inherit() Workaround
Self-Modifying Variables: the inherit() Workaround
Style queries will unlock many doors. An ability to alternate a value of any variable that I presented in my previous article might seem to be trivial by itself, but what if there is a hidden depth in how we can utilize it? One interesting case is the ability to emulate `inherit()` — a way to access the previous state of a custom property.
·kizu.dev·
Self-Modifying Variables: the inherit() Workaround
Alternating Style Queries
Alternating Style Queries
With the container style queries on the horizon, it is a good time to do more experiments with them. In one of my recent experiments, I found out that style queries will allow us to do what the currently specified (but not implemented by anyone) function `toggle()` was supposed to.
·kizu.dev·
Alternating Style Queries
Things That Can Break aspect-ratio in CSS – Frontend Masters Boost
Things That Can Break aspect-ratio in CSS – Frontend Masters Boost
CSS has an aspect-ratio property, which has had full support since around 2021. It can be a very satisfying property to use, because it can help match how your brain 🧠 works or what the desired design outcome does better than forcing dimensions does. “I need a square here” or “I need to match the […]
·frontendmasters.com·
Things That Can Break aspect-ratio in CSS – Frontend Masters Boost
Infinite-Scrolling Logos In Flat HTML And Pure CSS — Smashing Magazine
Infinite-Scrolling Logos In Flat HTML And Pure CSS — Smashing Magazine
Remember the HTML `` element? It’s deprecated, so it’s not like you’re going to use it when you need some sort of horizontal auto-scrolling feature. That’s where CSS comes in because it has all the tools we need to pull it off. Silvestar Bistrović demonstrates a technique that makes it possible with a set of images and as little HTML as possible.
·smashingmagazine.com·
Infinite-Scrolling Logos In Flat HTML And Pure CSS — Smashing Magazine
Playing with Infinity in CSS
Playing with Infinity in CSS
CSS has an infinity constant. When I first learned about this, my brain lit up with all kinds of absurd possibilities. Let’s discuss! There might even be some...
·codersblock.com·
Playing with Infinity in CSS
You Want border-color: transparent, Not border: none
You Want border-color: transparent, Not border: none
If you find yourself removing a border from an element that has a border and are tempted to use border: 0 , border: none, or outline: none, I’d urge you to stop for a moment and reconsider. It’s li…
·frontendmasters.com·
You Want border-color: transparent, Not border: none
Going beyond pixels and (r)ems in CSS - Container query length units - iO tech_hub
Going beyond pixels and (r)ems in CSS - Container query length units - iO tech_hub
In the third part of this series, we’ll look at length units based on the container. Yes, you heard that right, we can finally get some measurements based on a containing element and that just spells awesome in my book. Currently available in all evergreen browsers, these units open up a lot of opportunities to create some smart systems and once again, I will write this up packed with a bunch of demos and cool use cases.
·techhub.iodigital.com·
Going beyond pixels and (r)ems in CSS - Container query length units - iO tech_hub