
🏠 They say an average person lives in 11 homes in their lifetime. What’s your number? (I’m currently at 8🤪) — CanadianPam (@PamelaApostolo1) May 1, 2021 Hmmmmm! I’m not even sure what house I lived in when I was born. … The post Number of Homes appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter. https://css-tricks.com/number-of-homes/
A bona fide CSS trick from Kirupa Chinnathambi here. To match a colored shadow with the colors in the background-image of an element, you inherit the background in a pseudo-element, kick it behind the original, then blur and filter it. …
The post Creating Colorful, Smart Shadows appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://www.kirupa.com/html5/creating_colorful_smart_shadows.htm

I was just chatting with Eric Meyer the other day and I remembered an Eric Meyer story from my formative years. I wrote a blog post about CSS specificity, and Eric took the time to point out the misleading nature …
The post Let’s use (X, X, X, X) for talking about specificity appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://css-tricks.com/lets-use-x-x-x-x-for-talking-about-specificity/

In June of 2006, web developers and designers from around the world came to London for the second annual @media conference. The first had been a huge success, and @media 2006 had even more promise. Its speaker lineup was pulled …
The post Chapter 8: CSS appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

I hope people think of SVG as a vector format that is good for drawing things. There is plenty more to know, but here’s one more: SVG is good for composition. You draw things at very specific coordinates …
The post Swipey Image Grids appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

I’m willing to bet you know WebPageTest. It is the premier tool in the toolbox of web performance people. Maybe you didn’t know that WebPageTest was a side project of one fella, Patrick Meenan, for most of its lifetime, …
The post WebPageTest API appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

Yay, it’s here! Safari 14.1 reportedly adds support for the gap property in flexbox layouts. We’ve had grid-gap support for some time, but true to its name, it’s limited to grid layouts. Now we can use gap in either type …
The post Safari 14.1 Adds Support for Flexbox Gaps appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://css-tricks.com/safari-14-1-adds-support-for-flexbox-gaps/
Jim Nielsen quoting Eric Bailey:
He references an example on Twitter where someone noted you can use the element to “create a native HTML accordion,” to which someone responded: “this works without Bootstrap? 🤯” What’s the problem here? From
…
The post Web Languages as Compile Targets appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://blog.jim-nielsen.com/2021/web-languages-as-compile-targets/

Jenny B Kowalski has been posting a-letter-a-day on Instagram exploring multi-axis variable/responsive letterforms. They are very clever in that one of the axes controls an uppercase-to-lowercase conversion, literally morphing the shape of the letters from an uppercase version to a …
The post Jenny B Kowalski’s A-Z (and a-z) as Variable Letterforms appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

Labels are a feature that have existed since the creation of JavaScript. They aren’t new! I don’t think all that many people know about them and I’d even argue they are a bit confusing. But, as we’ll see, labels can …
The post You Can Label a JavaScript if
Statement appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.
https://css-tricks.com/you-can-label-a-javascript-if-statement/