Home/CSS-Tricks
Source

CSS-Tricks

2,268 articles from CSS-Tricks.

Career & Teams — Removing jQuery from GOV.UK

Removing jQuery from GOV.UK

The GOV.UK team recently published "How and why we removed jQuery from GOV.UK". This was an insightful look at how an organization can assess its tooling and

BKBradley KouchiBradley Kouchi·August 23, 2022Career & Teams
Frontend — CSS Grid and Custom Shapes, Part 2

CSS Grid and Custom Shapes, Part 2

Alright, so the last time we checked in, we were using CSS Grid and combining them with CSS clip-path and mask techniques to create grids with fancy shapes.

TATemani AfifTemani Afif·August 22, 2022Frontend
Frontend — CSS Grid and Custom Shapes, Part 1

CSS Grid and Custom Shapes, Part 1

In a previous article, I looked at CSS Grid's ability to create complex layouts using its auto-placement powers. I took that one step further in another

TATemani AfifTemani Afif·August 15, 2022Frontend
Frontend — Zooming Images in a Grid Layout

Zooming Images in a Grid Layout

Creating a grid of images is easy, thanks to CSS Grid. But making the grid do fancy things after the images have been placed can be tricky to pull off.

TATemani AfifTemani Afif·August 8, 2022Frontend
Frontend — Recreating MDN's Truncated Text Effect

Recreating MDN's Truncated Text Effect

It's no secret that MDN rolled out a new design back in March. It's gorgeous! And there are some sweet CSS-y gems in it that are fun to look at. One of those

GGGeoff GrahamGeoff Graham·July 28, 2022Frontend
Engineering — Office Spaces

Office Spaces

I think it's super timely that Jim Nielsen wrote about his office space the other day. My family recently re-rooted in Colorado and I was up late last night

GGGeoff GrahamGeoff Graham·July 14, 2022Engineering
Frontend — React Hooks: The Deep Cuts

React Hooks: The Deep Cuts

Hooks are reusable functions. They allow you to use state and other features (e.g. lifecycle methods and so on) without writing a class. Hook functions let us

BEBlessing Ene Anyebe·July 13, 2022Frontend
Frontend — In Praise of Shadows

In Praise of Shadows

Our dear friend Robin has a new essay called In Praise of Shadows. Now, before you hop over there looking for nuggets on CSS box shadows, text shadows, and

GGGeoff GrahamGeoff Graham·July 12, 2022Frontend
Frontend — Technical Writing for Developers

Technical Writing for Developers

HTML, CSS, JavaScript, Python, PHP, C++, Dart — there are so many programming languages out there and you may even be totally fluent in several of them! But

EEludaEluda·July 11, 2022Frontend
Engineering — Collective Nouns for the Web

Collective Nouns for the Web

Melanie Sumner has this super-specific collection of web-related nouns for describing a group or set of something. You know how there's a school or fish or a

GGGeoff GrahamGeoff Graham·July 1, 2022Engineering
Engineering — Bunny Fonts

Bunny Fonts

Bunny Fonts bills itself as the "privacy-first web font platform designed to put privacy back into the internet." According to its FAQ:

GGGeoff GrahamGeoff Graham·June 30, 2022Engineering
Frontend — My Dumbest CSS Mistakes

My Dumbest CSS Mistakes

We all make mistakes in our code. CSS mistakes are super easy to make and these are just a few of the most common ones I find myself correcting.

GGGeoff GrahamGeoff Graham·June 28, 2022Frontend
Architecture — Single Element Loaders: The Bars

Single Element Loaders: The Bars

We’ve looked at spinners. We’ve looked at dots. Now we’re going to tackle another common pattern for loaders: bars. And we’re going to do the same thing in

TATemani AfifTemani Afif·June 24, 2022Architecture
Frontend — Different Ways to Write CSS in React

Different Ways to Write CSS in React

We’re all familiar with the standard way of linking up a stylesheet to the <head> of an HTML doc, right? That’s just one of several ways we’re able to

SMSaleh MubasharSaleh Mubashar·June 22, 2022Frontend
Frontend — Single Element Loaders: The Dots

Single Element Loaders: The Dots

In this second part of our four-part series, we will make a dot loader with only a single div element using CSS backgrounds and masks.

TATemani AfifTemani Afif·June 17, 2022Frontend
Engineering — Am I on the IndieWeb yet?

Am I on the IndieWeb yet?

Can't smash the Like button hard enough for what Miriam Suzanne has to say on the challenging technical hurdles of implementing Webmentions:

GGGeoff GrahamGeoff Graham·June 9, 2022Engineering
Engineering — Please Give Me Some Space

Please Give Me Some Space

There's all kinds of ways to do that. Some more advisable and better-suited for certain situations than others, of course.

GGGeoff GrahamGeoff Graham·June 3, 2022Engineering
Engineering — Just How Long Should Alt Text Be?

Just How Long Should Alt Text Be?

I teach a class over at the local college here in Long Beach and a majority of the content is hosted on the Canvas LMS so students can access it online. And,

GGGeoff GrahamGeoff Graham·May 27, 2022Engineering
Performance — Beautify GitHub Profile

Beautify GitHub Profile

It wasn't long ago that Nick Sypteras showed us how to make custom badges for a GitHub repo. Well, Reza Shakeri put Beautify GitHub Profile together and it's

GGGeoff GrahamGeoff Graham·May 26, 2022Performance
Frontend — Customizing Color Fonts on the Web

Customizing Color Fonts on the Web

Myles C. Maxfield on the WebKit Blog published a nifty how-to for color fonts. It comes on the heels of what Ollie wrote up here on CSS-Tricks the other day,

GGGeoff GrahamGeoff Graham·May 25, 2022Frontend