Fixing Smooth Scrolling with Find-on-Page
Back when we released the v17 design (we’re on v18 now) of this site. I added html { scroll-behavior: smooth; } to the CSS. Right away, I got comments like this (just one example):
… when you control+f or command+f and search on CSS-Tricks, it’ll scroll very slowly instead of snapping to the result..
I Just Wanna Make Sure You Understand the WordPress.com Business Plan
WordPress.com is where you go to use WordPress that is completely hosted for you. You don’t have to worry about anything but building your site. There is a free plan to get started with, and paid plans that offer more features. The Business plan is particularly interesting, and my guess is that most..
WordPress.com Business Plan (Business-Class WordPress Hosting + Support from WordPress Experts)
WordPress.com is where you go to use WordPress that is completely hosted for you. You don’t have to worry about anything but building your site. There is a free plan to get started with, and paid plans that offer more features. The Business plan is particularly interesting, and my guess is that most..
How to Add Commas Between a List of Items Dynamically with CSS
Imagine you have a list of items. Say, fruit: Banana, Apple, Orange, Pear, Nectarine
We could put those commas (,) in the HTML, but let’s look at how we could do that in CSS instead, giving us an extra level of control. We’ll make sure that last item doesn’t have a comma while we’re at it.
I neede..
Building Flexible Components With Transparency
Good thinking from Paul Hebert on the Cloudfour blog about colorizing a component. You might look at a design comp and see a card component with a header background of #dddddd, content background of #ffffff, on an overall background of #eeeeee. OK, easy enough. But what if the overall background bec..
Careful When Changing the Display of `summary`
I got a very helpful bug report the other day (thanks Kilian!) about the
element in a blog post of mine not showing the default ▶ icon, and thus looking rather like any ol’ random
. It wasn’t terribly hard to diagnose. I just opened the page in Firefox, inspected the element in Firefox..
Flash’s Web Tech Legacy
Tiffany B. Brown on how Flash paved the way for some things we might think of as fairly modern web technologies:
Flash wasn’t just good for playing multimedia. It was also good for manipulating it. Using ActionScript, you could pan audio, adjusting the input for the user’s left and right speakers, ..
Animating with Lottie
I believe animation on the web is not only fun, but engaging in such a way that it has converted site visitors into customers. Think of the “Like” button on Twitter. When you “like” a tweet, tiny colorful bubbles spread around the heart button while it appears to morph into a circle around the butto..
CSS Snapshot 2020
I think it’s great that the CSS Working Group does these. It’s like planting a flag in the ground saying this is what CSS looks like at this specific point in time. They do specifically say it’s not for us CSS authors though…
This document collects together into one definition all the specs that to..
Painters Tape and Fault Tolerance
Snipping the top bit of Nicholas C. Zakas’s Top of the Month newsletter (go sign up!), with permission.
One of my favorite things in the world is painters tape (also called masking tape). It seems like something silly: some tape you put on a wall when you’re painting to avoid getting paint on the w..