Home/Chris Coyier
Author

Chris Coyier

902 articles by Chris Coyier.

Frontend — Long Hover

Long Hover

I had a very embarrassing CSS moment the other day.

CCChris Coyier·March 16, 2021Frontend
Frontend — The Gang Goes on JS Danger

The Gang Goes on JS Danger

The JS Party podcast sometimes hosts game shows. One of them is Jeopardy-esque, called JS Danger, and some of us here from CSS-Tricks got to be the guests

CCChris Coyier·March 15, 2021Frontend
Frontend — CSS-Tricks Chronicle XXXX

CSS-Tricks Chronicle XXXX

I've been lucky enough to be a guest on some podcasts and at some events, so I thought I'd do a quick little round-up here! These Chronicle posts are just

CCChris Coyier·March 5, 2021Frontend
Design & UX — The "Gray Dead Zone" of Gradients

The "Gray Dead Zone" of Gradients

Erik D. Kennedy notes an interesting phenomenon of color gradients. If you have a gradient between two colors where the line between them in the color space

CCChris Coyier·March 1, 2021Design & UX
Frontend — CSS Border Font

CSS Border Font

Every letter in this "font" by Davor Suljic is a single div and drawn only with border. That means employing some trickery like border-radius with exotic

CCChris Coyier·February 28, 2021Frontend
Frontend — Next.js on Netlify

Next.js on Netlify

If you want to put Next.js on Netlify, here's a 5 minute tutorial¹. One of the many strengths of Next.js is that it can do server-side rendering (SSR) with a

CCChris Coyier·February 28, 2021Frontend
Frontend — SmolCSS

SmolCSS

A wonderful collection of little layout-related CSS snippets from Stephanie Eckles that serves both as a quick reference and a reminder of how straightforward

CCChris Coyier·February 24, 2021Frontend
Frontend — Hiding Content Responsibly

Hiding Content Responsibly

We've covered the idea of hiding things in CSS many times here, the most recent post being Marko Ilic's "Comparing Various Ways to Hide Things in CSS" which

CCChris Coyier·February 23, 2021Frontend
Frontend — Barebones CSS for Fluid Images

Barebones CSS for Fluid Images

Zach takes a look at some fundamental HTML+CSS usage for fluid, responsive images. Most of it, I'd say, is what you'd expect, but things get weird when srcset

CCChris Coyier·February 18, 2021Frontend
Engineering — You want...

You want...

I've been enjoying these little "You want..." style posts. Post titles like that are a little more... forceful for my normal taste, but I like the spirit of

CCChris Coyier·February 17, 2021Engineering
Frontend — Things You Can Do With CSS Today

Things You Can Do With CSS Today

Some nice coverage from Andy about CSS things that are truly new. If you haven't looked at new things in CSS in, say, a year, I'd bet pretty much all of this

CCChris Coyier·February 17, 2021Frontend
Performance — Netlify

Netlify

High five to Netlify for the ❥ sponsorship. Netlify is a great place to host your static (or not-so-static!) website because of the great speed, DX, pricing,

CCChris Coyier·February 16, 2021Performance
Engineering — The Devil's Albatross

The Devil's Albatross

Nils Binder talks about a technique for spacing between two elements. Picture a header on a large screen with a logo in the upper left and nav in the upper

CCChris Coyier·February 12, 2021Engineering
Engineering — iframe feedback

iframe feedback

What if an <iframe> had within it another <iframe> of the exact same source? Inception, as they say. Baptise Crespy does this all-important

CCChris Coyier·February 11, 2021Engineering
Engineering — How to Favicon in 2021

How to Favicon in 2021

I always appreciate someone looking into and re-evaluating the best practices of something that literally every website needs and has a complex set of

CCChris Coyier·February 10, 2021Engineering
Frontend — Nested Media Queries

Nested Media Queries

We don't have "regular" nesting in CSS. Maybe this becomes a thing someday, or something like it. That would be cool, although that pre-spec doesn't mention

CCChris Coyier·February 9, 2021Frontend
Frontend — SVG within CSS

SVG within CSS

Stefan Judis has a "Today I Learned" (TIL) post explaining how SVGs filters can be inlined in CSS. The idea is that CSS has the filter property which supports

CCChris Coyier·February 8, 2021Frontend
Engineering — Algolia

Algolia

Algolia is for search. Literally any website can take advantage of Algolia-powered search. You put JSON data ("records") in, and then you can search them at

CCChris Coyier·February 4, 2021Engineering
Engineering — "Cancelable" Smooth Scrolling

"Cancelable" Smooth Scrolling

Here's the situation: Your site offers a "scroll back to top" button, and you've implemented smooth scrolling. As the page scrolls back to the top, users see

CCChris Coyier·February 1, 2021Engineering
Frontend — No-Jank CSS Stripes

No-Jank CSS Stripes

My mind goes immediately to repeating-linear-gradient and hard-stop gradients when thinking of creating stripes in CSS. You make one stripe by using the same

CCChris Coyier·February 1, 2021Frontend
Frontend — Bulletproof flag components

Bulletproof flag components

A clever use of CSS grid from Jay Freestone to accomplish a particular variation of the media object design pattern (where the image is centered with the

CCChris Coyier·January 29, 2021Frontend
Engineering — Styling Web Components

Styling Web Components

Nolan Lawson has a little emoji-picker-element that is awfully handy and incredibly easy to use. But considering you'd probably be using it within your own

CCChris Coyier·January 29, 2021Engineering
Frontend — GreenSock ScrollTrigger

GreenSock ScrollTrigger

High five to the Greensock gang for the ScrollTrigger release. The point of this new plugin is triggering animation when a page scrolls to certain positions,

CCChris Coyier·January 28, 2021Frontend
Frontend — The Holy Grail Layout with CSS Grid

The Holy Grail Layout with CSS Grid

How to build a very common layout with CSS grid. Header on the top, footer on the bottom. Two columns, sidebar and main content. This one has navigation above the main content but within that same column.

CCChris Coyier·January 27, 2021Frontend
SRE & Ops — Monorepo

Monorepo

I'm not exactly a large-scale DevOps guy, but I can tell ya we've been moving back toward a monorepo at CodePen and it's rife with advantages over a system

CCChris Coyier·January 26, 2021SRE & Ops
Frontend — Servers: Cool Once Again

Servers: Cool Once Again

There were jokes coming back from the holiday break that JavaScript decided to go all server-side. I think it was rooted in:

CCChris Coyier·January 22, 2021Frontend
Frontend — useStateInCustomProperties

useStateInCustomProperties

In my recent "Custom Properties as State" post, one of the things I mentioned was that theoretically, UI libraries, like React and Vue, could

CCChris Coyier·January 21, 2021Frontend