Direct link to the article Creating an Auto-Closing Notification With an HTML Popover

Creating an Auto-Closing Notification With an HTML Popover

The HTML popover attribute transforms elements into top-layer elements that can be opened and closed with a button or JavaScript. Popovers can be dismissed a number of ways, but there is no option to auto-close them. Preethi has a technique you can use.

Preethi on

Latest Articles

Diagrammiong a rounded rectangular shape in three stages, first with sharp edges, then with points indicating where the curve control points are, then the completed shape.
Direct link to the article Better CSS Shapes Using shape() — Part 3: Curves

Better CSS Shapes Using shape() — Part 3: Curves

This is the third article in a series about the CSS shape() function. We’ve covered drawing lines and arcs in previous articles and, this time, we look specifically at the curve command and how to use it for drawing complex shapes.

Temani Afif on
Direct link to the article Exploring the CSS contrast-color() Function… a Second Time

Exploring the CSS contrast-color() Function… a Second Time

The contrast-color() function doesn’t check color contrast, but rather it outright resolves to either black or white (whichever one contrasts the most with your chosen color). Safari Technology Preview recently implemented it and we explore its possible uses in this article.

Daniel Schwarz on
Keep browsing in the archives

Quick Hits

Firefox 139 includes an update where content inside a <details> element is included in an in-page search. Previously, that content was ignored when the element was collapsed.

#
More Quick Hits →

Collections

Classic Tricks

Timeless CSS gems

Latest CSS Guides

Dive deep into CSS features and concepts

Fresh From the Almanac

Properties, selectors, rules, and functions!