CSS-Trickz! also ready to join Digital Ocean

You probably want CSS-Tricks

Support Logical Shorthands in CSS

Written by: Geoff Graham

There’s a bit of a blind spot when working with CSS logical properties concerning shorthands.

Continue reading "Support Logical Shorthands in CSS" at CSS-Tricks

Revisiting CSS border-image

Written by: Andy Clarke

I’ve used border-image regularly. Yet, it remains one of the most underused CSS tools, and I can’t, for the life of me, figure out why. Is it possible that people steer clear of border-image because its syntax is awkward and unintuitive? Perhaps it’s because most explanations don’t solve the type of creative implementation problems that most people need to solve. Most likely, it’s both.

Continue reading "Revisiting CSS border-image" at CSS-Tricks

Quick Reminder That :is() and :where() Are Basically the Same With One Key Difference

Written by: Geoff Graham

I’ve seen a handful of recent posts talking about the utility of the :is() relational pseudo-selector. No need to delve […]

Continue reading "Quick Reminder That :is() and :where() Are Basically the Same With One Key Difference" at CSS-Tricks

Quick Hit #41

Written by: Geoff Graham

Ooo, look at that: Safari Technology Preview 215 adds support for scroll-driven animations, anchor positioning, and text-wrap: pretty. That’s a […]

Continue reading "Quick Hit #41" at CSS-Tricks

Quick Hit #40

Written by: Geoff Graham

Smashing Magazine is hosting a free online event discussing modern CSS goodness with the likes of Adam Argyle, Julia Miocene, […]

Continue reading "Quick Hit #40" at CSS-Tricks

Styling Counters in CSS

Written by: Juan Diego Rodríguez

Going from the most basic ways to style lists directly in HTML to advanced customization techniques that are even capable of making things that aren’t lists look like lists.

Continue reading "Styling Counters in CSS" at CSS-Tricks

Quick Hit #39

Written by: Geoff Graham

The CSSWG has voted to add a size keyword that’s shorthand for the width and height properties.

Continue reading "Quick Hit #39" at CSS-Tricks

Web Components Demystified

Written by: Geoff Graham

Scott Jehl released a course called Web Components Demystified. This is my full set of notes from Scott’s course. You’ll still want to take the course on your own, and I encourage you to because Scott is an excellent teacher who makes all of this stuff extremely accessible, even to noobs like me.

Continue reading "Web Components Demystified" at CSS-Tricks

Powering Search With Astro Actions and Fuse.js

Written by: Bryan Robinson

With Astro, we can generate most of our site during our build, but have a small bit of server-side code that can handle search functionality using something like Fuse.js. In this demo, we’ll use Fuse to search through a set of personal “bookmarks” that are generated at build time, but return back proper results from a server call.

Continue reading "Powering Search With Astro Actions and Fuse.js" at CSS-Tricks

Smashing Meets Accessibility

Written by: Geoff Graham

The videos from Smashing Magazine’s recent event on accessibility were just posted the other day. I was invited to host the panel discussion with the speakers, including a couple of personal heroes of mine, Stéphanie Walter and Sarah Fossheim. But I was just as stoked to meet Kardo Ayoub who shared his deeply personal story as a designer with a major visual impairment.

Continue reading "Smashing Meets Accessibility" at CSS-Tricks

Quick Hit #38

Written by: Juan Diego Rodríguez

Chrome has delayed shipping @function to Chrome 139! A wise choice, if you ask me; functions will set a before […]

Continue reading "Quick Hit #38" at CSS-Tricks

A CSS-Only Star Rating Component and More! (Part 2)

Written by: Temani Afif

In this second article of a two-part series, Temani Afif demonstrates an alternative approach to creating the star rating component from the first article using experimental scroll-driven animations rather than using the border-image property.

Continue reading "A CSS-Only Star Rating Component and More! (Part 2)" at CSS-Tricks