
A Look at Building with Astro
Astro is a brand new framework for building websites. To me, the big thing is that it allows you to build a site like you're using a JavaScript framework (and
902 articles by Chris Coyier.

Astro is a brand new framework for building websites. To me, the big thing is that it allows you to build a site like you're using a JavaScript framework (and

I appreciate the clarity of this trick that Mikael Ainalem posted over on Reddit:

And maybe an optional follow-up if you're up for it.

Web design is such a rectangle-based design medium that literally any deviation from it feels fresh. Michelle Barker gets into using math in various ways to

It's CSS-Tricks birthday! Somehow that keeps coming around every year. It's that time where I reflect upon that past year. It's like the annual vibe check.

The name zero-width space is antithetical, but it's not without uses. In text, maybe you'd use it around slashes because you want to be sure the words are

This is new stuff from DO.

This is a super niche blog post. But it's been on my list forever to write down because this caused me grief for far too long.

The marketing for Core Web Vitals (CWV) has been a massive success. I guess that's what happens when the world's dominant search engine tells people that

I was working on a bug ticket the other day where it was reported that an icon was sitting low in a button. Just not aligned like it should be. I had to go on

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:

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.

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

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,

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

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

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.

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

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...

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

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.

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

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

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

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).

In his last An Event Apart talk, Dave made a point that it's really only just about right now that Web Components are becoming a practical choice for

Two years ago, hold true:

Making GitHub’s new homepage fast and performant — Tobias Ahlin describes how the scrolling effects are done more performantly thanks to IntersectionObserver

Stefan Judis, two days before I mouthed off about using (X, X, X, X) for talking about specificity, has a great blog post not only using that format, but

Collection of common CSS mistakes, and how to fix them

Ooo look at this mighty SEO flex from Google: Learn CSS! Well deserved — this is great content. Twenty-three chapters taking you through all the fundamentals

Jonathan Neal tweeted a heck of a little CSS trick the other day, putting JSON inside CSS and plucking it out with JavaScript. Valid values for custom

Here's some hardcore deep-dive CSS nerdery from PPK. If you can wrap your mind around min-content (the smallest an element can be based on the content it

The Public Beta of the Notion API dropped! Woot! Here's their guide. I've been a Notion user and fan for a long time, for both personal and professional team

I'm afraid I have to start this with a whole backstory, as the journey here is the point, not so much the theme.

Addy Osmani on images in HTML:

An interactive tool for learning grid syntax from Etesam Ansari. In the Learn section, it teaches you some concepts (involving multiple bits of the grid

I've been thinking about social media images again. You know, the images that (can) show up when you share a link in places like Twitter, Facebook, or

Manuel Matuzović goes line-by-line through a boilerplate HTML document. I like it. It's a good reference and has a lot of the same type of stuff I tend to put

Chen Hui Jing covers some recent movement in DevTools: