When it comes to positioning elements on a page, including text, there are many ways to go about it in CSS — the literal position
property with corresponding inset-*
properties, translate
, margin
, anchor()
(limited browser support at the moment), and so forth. The offset
property is another one that belongs in that list.
I was reading through Juan’s recent Almanac entry for the @counter-style
at-rule and I’ll be darned if he didn’t uncover and unpack some extremely interesting things that we can do to style lists, notably the list marker. You’re probably already …
Some Things You Might Not Know About Custom Counter Styles originally pub
Chris wrote about “Likes” pages a long while back. The idea is rather simple: “Like” an item in your RSS reader and display it in a feed of other liked items. The little example Chris made is still really good.…
Creating a “Starred” Feed originally published on
Anchor positioning can be great for little interactive effects — as Temani Afif shows off with this clever idea for a menu hover.
Fancy Menu Navigation Using Anchor Positioning originally published on CSS-Tricks, which is part of the
Lee Meyer with a super clever idea using scroll-driven animations as an interaction to "like" or "dislike" something.
Web-Slinger.css: Across the Swiper-Verse originally published on CSS-Tricks, which is part of the
(This is a sponsored post.)
It’s probably no surprise to you that CSS-Tricks is (proudly) hosted on Cloudways, DigitalOcean’s managed hosting arm. Given both CSS-Tricks and Cloudways are part of DigitalOcean, it was just a matter of time …
Today, I want to look into one of those cases of impatient and how the community has waited for that feature, to be specific, two upcoming functions: sibling-count() and sibling-index().
How to Wait for the sibling-count() and sibling-index() Functions originally published on CSS-Tricks, which is part of the
I wrote a post for Smashing Magazine that was published today about this thing that Chrome and Safari have called “Tight Mode” and how it impacts page performance. I’d never heard the term until DebugBear’s Matt Zeunert mentioned it in …
I am still an AI skeptic. The biggest risk I foresee is that if your sole responsibility is to write code, your job is at risk. It’s not time to panic, but I do see a lot of value in evolving your soft skills.
The Importance of Investing in Soft Skills in the Age of AI originally published on CSS-Tricks, which
I'm more thankful this time around because, last year, I didn't even get to write this post. But now that I'm back, writing this feels so, so, so good. There's a lot more gusto going into my writing when I say: thank you so very much! Let's tie a bow on this year and round up what happened around here in 2024.
Thank You (2024 Edition) originally published on