Home/CSS-Tricks
Source

CSS-Tricks

1,207 articles from CSS-Tricks.

Frontend — CSS-Based Fingerprinting

CSS-Based Fingerprinting

Fingerprinting is bad. It's a term that refers to building up enough metadata about a user that you can essentially figure out who they are. JavaScript has

CCChris Coyier·January 3, 2022Frontend
Security — How to Create a Browser Extension

How to Create a Browser Extension

I’ll bet you are using browser extensions right now. Some of them are extremely popular and useful, like ad blockers, password managers, and PDF viewers.

LKLars KölkerLars Kölker·January 3, 2022Security
Engineering — Thank You (2021 Edition)

Thank You (2021 Edition)

The year has come to a close and it's time again for our end-of-year wrapup. The most important message is this: thank you. (thankyouthankyou)

CCChris Coyier·January 1, 2022Engineering
Frontend — Care for the Text

Care for the Text

How do you make a great website? Everyone has an answer at the ready: Flashy animations! The latest punk-rock CSS trick! Gradients! Illustrations! Colors to

RRRobin RendleRobin Rendle·December 24, 2021Frontend
Engineering — 2021 Roundup of Web Research

2021 Roundup of Web Research

Last year, we kicked out a roundup of published surveys, research, and other findings from around the web. There were some nice nuggets in there, like a

GGGeoff GrahamGeoff Graham·December 23, 2021Engineering
Engineering — Remember You Are Not the User

Remember You Are Not the User

One thing people can do to make their websites better is to remember that you are not representative of all your users. Our life experiences and how we

EBEmma BostianEmma Bostian·December 23, 2021Engineering
Engineering — Show, Don't Tell

Show, Don't Tell

How much time do you spend designing the content presentation for your websites? When you write a new blog post or create a new page, are you thinking about

MCMel ChoyceMel Choyce·December 23, 2021Engineering
Engineering — Increase Your Reach

Increase Your Reach

NGL, I was a little overwhelmed when I sat down to write this article. There are so many things that immediately flooded my mind—take out any extra divs; use

MSMelanie SumnerMelanie Sumner·December 22, 2021Engineering
Frontend — Topological sort

Topological sort

Jordan Scales explores the computer science concept of topological sorting, and what it might look like if applied to the concept of z-index in CSS. So, you

CCChris Coyier·December 16, 2021Frontend
Frontend — HTML Sanitizer API

HTML Sanitizer API

Three cheers for (draft stage) progress on a Sanitizer API! It's gospel that you can't trust user input. And indeed, any app I've ever worked on has dealt

CCChris Coyier·December 16, 2021Frontend
Performance — Think Without Boxes

Think Without Boxes

What’s the one thing people can do to make their website better? Now that is a good question. One with many right answers, like improving performance, taking

ASAmit SheenAmit Sheen·December 14, 2021Performance
Frontend — CSS-Tricks Chronicle XLI

CSS-Tricks Chronicle XLI

Ya know, I used to do one of these posts after making a few podcast appearances I hadn't had a chance to link up yet, so I could share them. As fate would

CCChris Coyier·December 13, 2021Frontend
AI & ML — File Scaffolding With Hygen

File Scaffolding With Hygen

I read a recent Smashing Magazine post that included a recommendation for Hygen. I just happen to be doing quite a bit of new UI work in a Next.js app and the

CCChris Coyier·December 13, 2021AI & ML
Engineering — Shadow Palette Generator

Shadow Palette Generator

Josh's Shadow Palette Generator is a fantastic tool. The premise is that box-shadow pretty much always looks better when there are multiple layered shadows

CCChris Coyier·December 13, 2021Engineering
Engineering — Embrace the Platform

Embrace the Platform

So what is the one thing that people can do is to make their website better? To answer that, let's take a step back in time …

BBramusBramus·December 13, 2021Engineering
Engineering — Learn From Remix

Learn From Remix

I’ve built websites that are used by millions of people all over the world. I’ve made more mistakes than I care to count and I’ve had to deal with the

KCKent C. DoddsKent C. Dodds·December 8, 2021Engineering
Frontend — Spicy Sections

Spicy Sections

What if HTML had "tabs"? That would be cool, says I. Dave has been spending some of his time and energy, along with a group of "Tabvengers" from OpenUI, on

CCChris Coyier·December 7, 2021Frontend
Engineering — Embrace the Unpredictable

Embrace the Unpredictable

In nature, no two things are ever the same. Life is imperfect, unpredictable, and beautiful. We can walk through the same forest every day and see differently

GFGeorge FrancisGeorge Francis·December 1, 2021Engineering
Frontend — Diagonal Stripes Wipe Animation

Diagonal Stripes Wipe Animation

I was playing this game on Apple Arcade the other day called wurdweb. It's a fun little game! Little touches like the little shape dudes that walk around the

CCChris Coyier·November 30, 2021Frontend
Design & UX — Coding Font Game

Coding Font Game

A tournament bracket UI where you pick your favorite between two coding fonts and your choices are whittled down all the way to a final winner. A clever way

CCChris Coyier·November 19, 2021Design & UX
Engineering — PHP Date and Time Recipes

PHP Date and Time Recipes

Dealing with dates and times is one of those things that can frustrate programmers a lot. At the same time, they are fundamental to software development, used

ASArjuna Sky Kok·November 18, 2021Engineering
Engineering — Cherry-Picking Commits in Git

Cherry-Picking Commits in Git

In part 5 of this series, we looked at rebasing and merging. Although there are a couple of differences between git merge and git rebase, both commands have the same goal: they integrate changes from one branch into another.

TGTobias GüntherTobias Günther·November 17, 2021Engineering
Frontend — The Gap (Design Engineering)

The Gap (Design Engineering)

Egor Kloos describes a situation where a (purely visual) designer asks for some changes to a component. There is a misunderstanding where the (code monkey)

CCChris Coyier·November 17, 2021Frontend
Engineering — Jamstack TV

Jamstack TV

That's the name of Netlify's YouTube Channel. Love that. I linked up Rich's talk the other day, which was a part of this past JamstackConf, but now all the

CCChris Coyier·November 16, 2021Engineering
Career & Teams — Interactive Rebase: Clean up your Commit History

Interactive Rebase: Clean up your Commit History

Interactive Rebase is the Swiss Army knife of Git commands: lots of use cases and lots of possibilities! It's really a great addition to any developer's tool chain, because it lets you revise your local commit history—before you share your work with the rest of the team. Let's see what you can do with an interactive rebase and then look at some practical examples.

TGTobias GüntherTobias Günther·November 12, 2021Career & Teams
Frontend — Semantic menu context

Semantic menu context

Scott digs into the history of the <menu> element. He traced it as far back as HTML 2 (!) in a 1994 changelog. The vibe then, it seems, was to mark up a

CCChris Coyier·November 11, 2021Frontend
Security — Don't Snore on CORS

Don't Snore on CORS

Whatever, I just needed a title. Everyone's favorite web security feature has crossed my desk a bunch of times lately and I always feel like that is a sign I

CCChris Coyier·November 10, 2021Security