
I got this exact question in an email the other day, and I thought it would make a nice blog post because of how wonderfully satisfying this is to do in CSS

Delan Azabani digs into the (hopefully) coming soon ::spelling-error and ::grammar-error pseudo selectors in CSS. Design control is always nice. Hey, if we

I use this line, or one like it, in a lot of quick demos. Not that it's not a production-worthy line of code—I just tend to be a bit more explicit on bigger

I needed to select some elements between two fixed indexes the other day — like literally the second through fifth elements. Ironically, I have a whole post

I think we're all largely aware of colors like this:

Sara digs into a bug I happened to have mentioned back in 2012 where fluid type didn't resize when the browser window resized. Back then, it affected Chrome

To make some terminology clear here:

Not news to any web developer in 2021: CSS Grid is an incredibly powerful tool for creating complex, distinct two-dimensional modern web layouts.

I am part of that 82% that got the answer to Lea Verou's quiz wrong. Stephen Shaw posted a similar quiz as well and it's a fun exercise sharpen your CSS chops.

I recently had to create a widget in React that fetches data from multiple API endpoints. As the user clicks around, new data is fetched and marshalled into

In April of 2009, Yahoo! shut down GeoCities. Practically overnight, the once beloved service had its signup page replaced with a vague message announcing its

The CSS image-set() function has been supported in Chromium-based browsers since 2012 and in Safari since version 6. Support recently landed in Firefox 88.

When I blogged "Making Tables With Sticky Header and Footers Got a Bit Easier" recently, I mentioned that the "stickiness" improvement was just one of

PPK looks at aspect-ratio, a CSS property for layout that, for the most part, does exactly what you would think it does. It's getting more interesting as it's

There are four keywords that are valid values for any CSS property (see the title). Of those, day to day, I'd say I see the inherit used the most. Perhaps

Svelte fully supports custom elements (e.g. <my-component>) without any custom configuration or wrapper components and has a perfect score on Custom

I'm not here to raise a shield protecting CSS utility frameworks. I don't even particularly like the approach, myself, and nothing is above fair criticism.

Una is calling it the new responsive. A nod to the era we were most certainly in, the era of responsive design. Where responsive design was fluid grids,

Let’s forego the usual circles and bars we typically see used in charts for more eccentric shapes. With online presentations more and more common today, a

The outline property in CSS draws a line around the outside of an element. This is quite similar to the border property, the main exception being that outline

I studied the fonts of the top 1000 websites. Here's what I learned. — Michael Li brings the data. San-serif has total dominance. " it is rare to go below

Clipping and masking have been around for a while now in CSS and even have pretty decent browser support. I recently worked on a project that needed to use a

Images have become extremely important to the effectiveness of websites. They speak a 1000 words, attract attention, and stimulate emotions.

The Web Animations API lets us construct animations and control their playback with JavaScript. The API opens the browser’s animation engine to developers and

If you're abhorred by using inline styles, just move that style to the class attribute! And then make sure you have CSS in place that, ya know, does what it

Jim Nielsen:

I wonder where headless WordPress will land. And by "headless" I mean only using the WordPress admin and building out the user-facing site through the

Usually, when "unused" comes up in conversation regarding CSS, it's about removing chunks of CSS that are not used in your site or, at least, the styles not

When you load a file from an external server, you’re trusting that the content you request is what you expect it to be. Since you don’t manage the server

Just a little link roundup of some off-site stuff I've done recently. As I'm wont to do from time to time.

It wasn't long ago when I looked at sticky headers and footers in HTML <table>s in the blog post A table with both a sticky header and a sticky

That's the one word that isn't an adjective in the acronym RSS.

There's a 33-minute video (and resources) over on apple.com covering the upcoming Safari changes we saw in the WWDC keynote this year in much more detail.

Why would we need to apply shadows to SVG?

As awesome as flexbox is, what it’s doing under the hood is actually a little strange because, by default, it is doing two things at once. It first looks at the content size which is what we would get if by declaring width: max-content on an element. But on top of that, flex-shrink is also doing some work allowing the items to be smaller, but only if needed. Let’s break those two down and see how

One thing that can be just a smidge funky about the <details> element is that, when open, it's not always 100% clear what is inside that element and

In this tutorial, we will learn and use headless CMS, Fauna, and Vercel functions to build a blogging platform, Blogify After that, you can easily build any web application using a headless CMS, Fauna and Vercel functions.

I don't know about y'all, but my feeds have been flooded with articles about CSS Container Queries these past few weeks. The buzz about container queries

Does that make your eye twitch a little bit? Like... it's a typo. It should be target="_blank" with an underscore to start the value. As in...

Have you ever experienced the frustration of trying to tap a button on a mobile device only to have it do nothing because the target size is just not large

WordPress sites have an API by default. Wanna see this site's most recent posts, with just a specific set of data... in JSON format? Here ya go. Alex Riviere

Show/Hide password accessibility and password hints tutorial — Nicolas Steenhout goes deep on <input type="password"> accessibility. For one thing,

Let's look at some extensions for VS Code that make writing and editing HTML (and languages that are basically HTML with extra powers) better. You may not

Colin Oakley:

I just joked that we're basically getting everything we want in CSS super fast (mostly referring to container queries, my gosh, can you imagine they are

A little while back, Chris shared this nice hexagonal grid. And true to its name, it’s using —wait for it — CSS Grid to form that layout. It’s a neat trick!

DebugBear takes just a few seconds to start using. You literally point it at a URL you want to watch, and it'll start watching it. You install nothing.

Blocks in WordPress are great. Drop some into the page, arrange them how you like, and you’ve got a pretty sweet landing page with little effort. But what if

How do I debug Safari on iOS?

PPK laid out an interesting situation in "Two options for using custom properties" where he and Stefan Judis had two different approaches for doing the same

Testing is one of those things that you either get super excited about or kinda close your eyes and walk away. Whichever camp you fall into, I’m here to tell

Critical CSS is one of those things I see in my performance reports but always seem to ignore. I know what it means. It means to put only the CSS required to

Pedro Duarte made a wishlist for styled code blocks in blog posts and documentation, then hand-rolls a perfect solution for that wishlist. For example, a

Modern apps put high demands on frontend devs. Use serverless functions to avoid complexity & helps your team ship more with less stress.

I've been using Local for ages. Four years ago, I wrote about how I got all my WordPress sites running locally on it. I just wanted to give it another high

Typically, a single favicon is used across a whole domain. But there are times you wanna step it up with different favicons depending on context. A website

Most images on the web are superfluous. If I might be a jerk for a bit, 99% of them aren’t even that helpful at all (although there are rare exceptions).

It's very popular to put a $ on lines that are intended to be a command in code documentation that involves the terminal (i.e. the command line).

Serverless architectures have brought engineering teams a great number of benefits. We get simpler deployments, automatic and infinite scale, better

Wondering what’s even more challenging than choosing a JavaScript framework? You guessed it: choosing a CSS-in-JS solution. Why? Because there are more than