Checkout my blog https://theosoti.com
I'll show you how with just 2 extra lines of CSS!
No hacks. No JavaScript. Just the magic of the :has() selector.
CSS is evolving fast, and :has() is proof of that.
I'll show you how with just 2 extra lines of CSS!
No hacks. No JavaScript. Just the magic of the :has() selector.
CSS is evolving fast, and :has() is proof of that.
It’s super simple with CSS!
The magic lies in background-clip: text.
This property controls how far the background extends.
This technique is perfect for eye-catching headers or unique branding.
It’s super simple with CSS!
The magic lies in background-clip: text.
This property controls how far the background extends.
This technique is perfect for eye-catching headers or unique branding.
“display: contents" makes an element disappear from the layout visually, while keeping its children styled and functional as usual.
Checkout the example below, or go to the codepen https://buff.ly/3BP8hD4 I created to see it live.
“display: contents" makes an element disappear from the layout visually, while keeping its children styled and functional as usual.
Checkout the example below, or go to the codepen https://buff.ly/3BP8hD4 I created to see it live.
It can be done with one line of code:
font-size: clamp(1rem, 0.5rem + 2vw, 2rem);
Not easily readable at first, but once you know the logic it's pretty simple (thread) ⬇️
It can be done with one line of code:
font-size: clamp(1rem, 0.5rem + 2vw, 2rem);
Not easily readable at first, but once you know the logic it's pretty simple (thread) ⬇️
grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
- auto-fit adjusts columns based on space.
- minmax() sets column size range.
- min(100%, 300px) ensures columns fit the container.
grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
- auto-fit adjusts columns based on space.
- minmax() sets column size range.
- min(100%, 300px) ensures columns fit the container.