css blog with helpful tips and tricks
Popover API or Dialog API: Which to Choose?
2 March 2026 @ 3:10 pm
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.
Popover API or Dialog API: Which to Choose? originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.
What’s !important #6: :heading, border-shape, Truncating Text From the Middle, and More
27 February 2026 @ 4:30 pm
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!
What’s !important #6: :heading, border-shape, Truncating Text From the Middle, and More originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.
Yet Another Way to Center an (Absolute) Element
27 February 2026 @ 2:40 pm
TL;DR: We can center absolute-positioned elements in three lines of CSS. And it works on all browsers!
Yet Another Way to Center an (Absolute) Element originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.
An Exploit … in CSS?!
25 February 2026 @ 9:31 pm
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."
An Exploit … in CSS?! originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.
A Complete Guide to Bookmarklets
25 February 2026 @ 2:50 pm
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.
A Complete Guide to Bookmarklets originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.
Loading Smarter: SVG vs. Raster Loaders in Modern Web Design
23 February 2026 @ 2:18 pm
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.
Loading Smarter: SVG vs. Raster Loaders in Modern Web Design originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.
Potentially Coming to a Browser :near() You
20 February 2026 @ 3:36 pm
Danny has several ideas for how we could use :near(), a proposed pseudo-class that detects when the pointer is near an element.
Potentially Coming to a Browser :near() You originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.
Distinguishing “Components” and “Utilities” in Tailwind
18 February 2026 @ 4:21 pm
The distinction between "components" and "utilities" seems clear at first glance, but gets a little blurred when working with them in Tailwind.
Distinguishing “Components” and “Utilities” in Tailwind originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.
Spiral Scrollytelling in CSS With sibling-index()
17 February 2026 @ 3:17 pm
Lee accepts a challenge: arranging text in a spiral that animates as a vortex on scroll... all in CSS.
Spiral Scrollytelling in CSS With sibling-index() originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.
Interop 2026
17 February 2026 @ 2:17 pm
Interop 2026 is officially a thing and there's plenty of new (and even old) CSS features that we can look forward to being cross-browser compatible and consistent!
Interop 2026 originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.