08 OCT 2026

Issue 346

Tooltips, heading styles, container queries, and more in Issue 346 of CSS Layout News.



There's frost on the roof of my office shed this morning, and I've got my Halloween decorations up. There's nothing spooky about this edition of CSS Layout News, however! If you want to follow me elsewhere, I'm also collecting links over on Semble, in a CSS Layout collection.

Things I've been reading

Chris Coyier shows you how to use CSS random() to move an item to random positions around another element. The random() function isn't Baseline yet, but you can try out the examples using Safari, or Chrome with the Experimental Web Platform Features enabled.

This is a nice article from Craig Abbott which provides a way to balance your headings to ensure that different levels demonstrate a visual difference. This avoids using colour alone to differentiate between heading levels, which disadvantages people who are colour blind.

Victor Ayomipo shows how container queries differ from media queries, and explains when you should use each type of query. With container queries now Baseline Widely available, you should feel happy to benefit from their power to create reusable components.

Matt Smith has written a short tutorial which nicely demonstrates anchor positioning, and how it solves a problem that used to require a lot of JavaScript and careful engineering to keep tooltips visible.

From Flavio Copes, another article on the subject of things we used to have to use JavaScript for. Includes container queries, subgrid, scroll-driven animations, and more.

Bramus has provided a way to add chaos to your website navigations with page transitions styled after the IE "Interpage Transitions".

Just landed in browsers

Chrome 154 includes responsively-sized iframes. This feature, currently only available in Chrome, lets iframes resize themselves based on the intrinsic size of the embedding document. This prevents the situation where you have to measure the size of the content then update the iframe size.

Firefox 157 adds support for the at-rule() function in @supports , this means you can test if the browser supports a given at-rule. Chrome already has support and it's in Safari Technology Preview, hopefully we'll see it become Baseline soon.

Enjoyed this article?

Join our free newsletter and never miss an update.


Related Articles