CSS-Trickz! also ready to join Digital Ocean

You probably want CSS-Tricks

Popover API or Dialog API: Which to Choose?

Written by: Zell Liew

Choosing between Popover API and Dialog API is difficult because they seem to do the same job, but they don’t! After a bit lots of research, I discovered that the Popover API and Dialog API are wildly different in terms of accessibility and we’ll go over that in this article.

Continue reading "Popover API or Dialog API: Which to Choose?" at CSS-Tricks

Quick Hit #104

Written by: Daniel Schwarz

Safari TP 238 trials :open, which would make it baseline (yes, really).

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

What’s !important #6: :heading, border-shape, Truncating Text From the Middle, and More

Written by: Daniel Schwarz

Despite what’s been a sleepy couple of weeks for new Web Platform Features, we have an issue of What’s !important that’s prrrretty jam-packed. The web community had a lot to say, it seems, so fasten your seatbelts!

Continue reading "What’s !important #6: :heading, border-shape, Truncating Text From the Middle, and More" at CSS-Tricks

Yet Another Way to Center an (Absolute) Element

Written by: Juan Diego Rodríguez

TL;DR: We can center absolute-positioned elements in three lines of CSS. And it works on all browsers!

Continue reading "Yet Another Way to Center an (Absolute) Element" at CSS-Tricks

An Exploit … in CSS?!

Written by: Lee Meyer

Read an explanation of the recent CVE-2026-2441 vulnerability that was labeled a “CSS exploit” that “allowed a remote attacker to execute arbitrary code inside a sandbox via a crafted HTML page.”

Continue reading "An Exploit … in CSS?!" at CSS-Tricks

Quick Hit #103

Written by: Daniel Schwarz

Firefox 148 makes shape() available without a flag, aligning with Chrome and Safari.

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

A Complete Guide to Bookmarklets

Written by: Declan Chidlow

Browsers don’t just let you bookmark web pages. You can also bookmark JavaScript, allowing you to do so much more than merely save pages.

Continue reading "A Complete Guide to Bookmarklets" at CSS-Tricks

Quick Hit #102

Written by: Daniel Schwarz

Bramus very quickly walks us through the new scrolled scroll-state query.

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

Loading Smarter: SVG vs. Raster Loaders in Modern Web Design

Written by: Mariana Beldi

Let’s get nuanced in this article and discuss the capabilities of both SVG and raster imaged so that you can make informed decisions in your own work.

Continue reading "Loading Smarter: SVG vs. Raster Loaders in Modern Web Design" at CSS-Tricks

Potentially Coming to a Browser :near() You

Written by: Daniel Schwarz

Danny has several ideas for how we could use :near(), a proposed pseudo-class that detects when the pointer is near an element.

Continue reading "Potentially Coming to a Browser :near() You" at CSS-Tricks

Quick Hit #101

Written by: Daniel Schwarz

Safari TP 237 becomes the first to trial :heading, a pseudo-class for selecting multiple heading levels at once.

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

Distinguishing “Components” and “Utilities” in Tailwind

Written by: Zell Liew

The distinction between “components” and “utilities” seems clear at first glance, but gets a little blurred when working with them in Tailwind.

Continue reading "Distinguishing “Components” and “Utilities” in Tailwind" at CSS-Tricks