
Scrollbars on Hover
First, scrollbars are a usability and accessibility thing. Second, a rule of thumb: if an area scrolls, it should have a visible scrollbar. But the web is a
902 articles by Chris Coyier.

First, scrollbars are a usability and accessibility thing. Second, a rule of thumb: if an area scrolls, it should have a visible scrollbar. But the web is a

ESM, meaning ES Modules, meaning JavaScript Modules. Like, import and friends.

Netlify Edge Handlers are in Early Access (you can request it), but they are super cool and I think they are worth wrapping your brain around now. I think

There are quite a few CSS animation libraries. They tend to be a pile of class names that you can apply as needed like "bounce" or "slide-right" and it'll...

Robin Weser's "The Shorthand-Longhand Problem in Atomic CSS" in an interesting journey through a tricky problem. The point is that when you take on the job of

I just had to debug an issue with focusable elements in Firefox. Someone reported to me that when tabbing to a certain element within a CodePen embed, it shot

With ES Modules, you can natively import other JavaScript. Like confetti, duh:

Louis Lazaris demonstrates a very simple way of doing this.

Terence Eden poked around with a way to do footnotes using the <details>/<summary> elements. I think it's kind of clever. Rather than a hyperlink

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

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

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

Tiffany B. Brown on how Flash paved the way for some things we might think of as fairly modern web technologies:

I got a very helpful bug report the other day (thanks Kilian!) about the <details> element in a blog post of mine not showing the default ▶ icon,

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

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 wall. The tape doesn’t have a strong adhesive, so it can be pulled back off the wall without damaging it.

Jen was just tweetin' about how the latest Safari Technical Preview has aspect-ratio. Looks like Chrome and Firefox both have it behind a flag, so with Safari

Simon Willison has a project called Datasette, an open source multi-tool for exploring and publishing data. I'm not sure I'm qualified to explain it, but it's

There is a <code> tag in HTML. I literally just used it to wrap that tag in the previous sentence — so meta. It is an inline-by-default element that

Here's a little hodgepodge of videos I've recently bookmarked (and watched). I couldn't decide if each one of them should be a separate blog post or if I

Here's a fun idea from James Stanley: a CSS file (that presumably updates daily) containing CSS custom properties for "seasonal" colors (e.g. spring is

Spencer Miskoviak on the Wealthfront blog:

Nice site from Google (and guest contributors) with a bunch of fun demos of what Houdini can do. Plus a write-up from Una. These are all Paint API demos.

Adam Argyle has a post over on web.dev digging into this. He starts with the assumption that you need to do vertical centering and horizontal centering. It's

Heck of a year, eh? Like we do every year, I'd like to give you a huge thanks for reading CSS-Tricks, and recap the year. More downs than ups, all told. Here

Me, I really dislike FOUT. I like that it's an option, because not displaying text quickly on the web is no good. I know font-display: swap; is popular

Josh Comeau covers the concept of margin collapsing:

It's a pretty low-effort thing to get a big fancy link preview on social media. Toss a handful of specific <meta> tags on a URL and you get a big

I redesigned the site! I can never think about the word redesign without also thinking about realigning, from Cameron Moll's seminal article. I did not start

The answer to "What is the most accessible HTML for an SVG icon?" isn't one-size-fits all, because what an icon needs to do on a website varies. I'm partial

These things are so similar, I find it hard to keep them straight. This is a nice little explanation from viewBox (what a cool name and URL, I hope they keep

Big ol' same to Michelle Barker here:

Over on the Polypane blog (there's no byline but presumably it's Kilian Valkhof (it is)), there is a great article, Creating websites with

This article has no byline and is on a website that is even more weirdly specific than this one is, but I appreciate the trick here. A seven-column grid makes

Even though GitHub Readme files (typically ./readme.md) are Markdown, and although Markdown supports HTML, you can't put <style> or <script> tags

Sara Soueidan digs into this HTML/UX situation. "Yes" or "no" is a boolean situation. A checkbox represents this: it's either on or off (uh, mostly). But is a

Whether you use the eCommerce features on WordPress.com or use WooCommerce on your self-hosted WordPress site (like we do), you can use the WooCommerce mobile

The series is a wrap, my friends! Thanks for reading and a big special thanks to all the authors this year who shared something they have learned. Many

I really appreciate a real-world walkthrough of a technology. Not only in what that technology does, but why it was chosen and how it worked for a team.

Tim Severien:

I enjoyed this blog post from Shawn. Lampshading is apparently the idea of a TV show calling attention to some weakness (like an implausible plot point) so

Speaking of cool CSS stuff you can buy, Julia Evans' zine Hell Yes! CSS! is hot off the presses. A "zine" being 28 pages of "short, informative, and fun

Cassidy Williams has been doing a Blogvent (blogging every day for a month) over on the Netlify Blog. A lot of the blog posts are about Next.js. There is a

High five to Ahmad Shadeed for releasing his new book, Debugging CSS. I think that's a neat angle for a book on CSS. There are a ton of books on the general

Looks like all the content of MDN is on GitHub now. That's pretty rad. That's been the public plan for a while. Chris Mills:

This is about a wildly specific combination of technologies — Eleventy, the static site generator, with pages with images on them that you ultimately want

It's kind of neat that we can do input:invalid {} in CSS to style an input when it's in an invalid state. Yet, used exactly like that, the UX is pretty bad.

First, quickly: AWS Amplify has a new Admin UI. Amplify always had a CLI that helps you build projects by setting up stuff like auth, storage, and APIs.

It's sounding more and more likely that we're actually going to get real container queries. Google is prototyping a syntax idea from David Baron and refined

Matthias Ott, comparing how painter Gerhard Richter paints (do stuff, step back, take a look) to what can be the website building process and what can wreck it:

I first blogged about responsive data tables in 2011. When responsive web design was first becoming a thing, there were little hurdles like data tables that

We made one! It's open source if you want to make it better or fix things.

Rachel Andrew introducing the fact that masonry layout is going to be a thing in native CSS via CSS grid layout. The thing with masonry is that we can already

Some really refreshing technological comparison writing from Eric Bailey. Like, ya know, everything in life, we don't have to hate or love everything. Baby

Some baby bear thinking from Katie Sylor-Miller:

Here are the big categories of rendering websites:

I've compared SVG and Canvas before. If you're trying to decide between them, read that. I'd say the #1 difference between them is vector (SVG) versus raster

The survey results from the State of CSS aren't out yet, but they made this landing page that randomly shows you what one person wrote to answer that

I'm sure different people picture different things when they think about webrings, so let me clarify what I picture. I see an element on a website that:

I think this might be my most popular tweet of all time, but I'm not sure how to verify that these days. I'll restate this neat little trick here because