How many ways can you select <html> in CSS? @dxnny.fun says “challenge accepted” building off an exercise @css-only.dev did a little while back.
css-tricks.com/the-differen...
css-tip.com/root-selecto...
How many ways can you select <html> in CSS? @dxnny.fun says “challenge accepted” building off an exercise @css-only.dev did a little while back.
css-tricks.com/the-differen...
css-tip.com/root-selecto...
A little gem @monknow.bsky.social stumbled into when working on something... we can center an absolutely positioned element with justify-self:
.element {
position: absolute;
place-self: center;
inset: 0;
}
He explains it nicely here:
css-tricks.com/yet-another-...
A Complete Guide to Bookmarklets, by @vale.rocks (@csstricks@mastodon.social):
https://css-tricks.com/a-complete-guide-to-bookmarklets/
#guides #bookmarklets #javascript #linklists
An Exploit... in CSS?!
Lee Meyer's sane, thoroughly reported, and well-grokked explanation of the recent CVE-2026-2441 vulnerability that was labeled a "CSS exploit" that "allowed a remote attacker to execute arbitrary code inside a sandbox via a crafted HTML page."
css-tricks.com/an-exploit-i...
Firefox 148 makes shape() available without a flag, aligning with Chrome and Safari:
developer.mozilla.org/en-US/docs/M...
All the magazines are saying it. Bookmarklets are so in right now.
You may consider them obsolete in the face of shinier tools, but they prove themselves a solid, stable staple of any developer's toolbox.
Fast, stable, time-proven. What isn't to love?
#WebDev #FrontEndDevelopment
Making your own bookmarklets doesn't have to be all that difficult, and @vale.rocks shows you how, step-by-step.
css-tricks.com/a-complete-g...
SVG or raster? The short answer to that question is: there’s almost no difference at all if you are working on something very small and specific.
But it's more nuanced than that, and @holasvg.com has all the nerdy details you need.
css-tricks.com/loading-smar...
Here's @dxnny.fun poking at a new proposal that would allow an element to match an element when the pointer gets :near() it by a certain amount.
css-tricks.com/potentially-...
A few recent additions to the ol' Almanac to distract you on this lovely Friday:
❋ The sign() function
css-tricks.com/almanac/func...
❋ The progress() function
css-tricks.com/almanac/func...
❋ The abs() Function
css-tricks.com/almanac/func...
That progress() one... just wild.
Tailwind utilities can be thought of as components. But there's really a difference between the two and it's helpful to know it. That's where @zellwk.bsky.social has an excellent way to distinguish the two.
css-tricks.com/distinguishi...
Interop 2026 is officially a thing and there's plenty of new (and even old) CSS features that we can look forward to being cross-browser compatible and consistent!
css-tricks.com/interop-2026/
Split the text (to experiment, not to ship), rotate and scale it, and translate the individual characters on scroll.
Phew, definitely not for the faint of heart but it's a super cool effect!
css-tricks.com/spiral-scrol...
I thought this was like A WHOLE THING. "The boss level of accessibility tasks" and all that. News to me.
We just converted a non-<dialog> modal to <dialog> just to get the trapping, and I'm keeping it because it actually fixes a little bug I saw where a late-loading editor steals focus out.
The last two weeks have been super nuts and I haven't hit my RSS reader in days (which is ages for me). But I love @dxnny.fun's round-ups for all that "ain't got no time for this" stuff.
css-tricks.com/whats-import...
Exactly 5 years ago, I released my first CSS article. I was "trying" something new, and since then, I never stopped.
Today, I count around 140 articles, a lot of cool CSS websites, and countless demos 😄
Don't miss my latest article with a bunch of modern CSS stuff 👇
Geez, @css-only.dev is really on a roll! Not only is he rocking a new article on @frontendmasters.com, but he's got another banger today on responsive pyramidal grids. 🔥
css-tricks.com/making-a-res...
CSS converting the oklch() function to an RGB color with color-mix() that takes a color variable and makes a calculation that returns white or black.
Here's a pretty clever, albeit super math-y, way to approximate the contrast-color() function while we're waiting for full support.
css-tricks.com/approximatin...
Almost at 1000 attendees for Meets Design Systems 2026! If you’re thinking, “Should I be attendee #999 or #1000?“, now is the time to register.
No rewards. Pure emotional satisfaction. :-D
Your ticket is free, it’s happening Tomorrow, Feb 11, 2026 (8–11 am PT). 💘
smashingconf.com/meets-design...
I have a new article up trying to make the perfect pie chart in CSS! There is probably a lot to improve, so a little feedback would be much appreciated
The progress() function is sorta like clamp() but returns 1 or 0. Combine it with calc() and you can get weird with it.
css-tricks.com/almanac/func...
Can we make pie chart that's semantic, written with flexible markup, and avoids using expensive JavaScript libraries? @monknow.bsky.social takes a noble shot at it. 🥧
css-tricks.com/trying-to-ma...
Announcing The CSS Selection!
📰 www.projectwallace.com/the-css-sele...
📚 100,000 websites
⏱️ 100+ metrics
🔖 7 chapters
The biggest deep-dive ever into real-world use of CSS across the globe. Dive in and find out some hidden gems. Also, see how much of 'the new CSS' is actually used!
CSS-only bar charts are one of those things we've tackled a bunch of times in different ways. But how can modern CSS features finally make it not only trivial, but fun?
@preethisam.bsky.social pokes at it with several examples.
css-tricks.com/css-bar-char...
taking another look at @miriam.codes's article on @css-tricks.bsky.social
Using Custom Property “Stacks” to Tame the Cascade
css-tricks.com/using-custom...
Ooo, really nice! I hope you're saving a deep tutorial for us.
A couple new additions to the ol' CSS-Tricks Almanac all about scroll-driven animations:
view-timeline-axis (set scroll direction):
css-tricks.com/almanac/prop...
view-timeline-inset (adjust where things start and end):
css-tricks.com/almanac/prop...
Kudos to @undeadinstitute.bsky.social! 🧡
By default, the new ::search-text pseudo (Chrome 144) matches are yellow while the current target (::search-text:current) is orange, but ::search-text enables us to change that. (via @dxnny.fun )
css-tricks.com/how-to-style...
📝 New CSS article!
First one of the year, and as usual, plenty of modern CSS features.
If you want to have an overview of how "programming with CSS" looks in 2026, read it 👇
It's easy to forget that the CSS hue-rotate() function not only works on background colors, but also text color, background images, and even box shadows!
css-tricks.com/almanac/func...