CSS

Posts with the CSS tag.

About this site and me

Blog homepage RSS feed Mastodon Bluesky About me

This blog uses a new RSS feed. Please update the old QuirksBlog feed you used to follow.

Tag archives

Archives 2 CSS 4 Conferences 5 Personal 2 Safari 1 Site 2 Thidrekssaga 1

Monthly archives

May 2026 4 April 2026 9 2004-2021 blog

Column-filled grids: the issues

7 May 2026 | tagged as CSS

I created a technique to fill a grid column by column instead of row by row, while still setting a maximum number of columns. It works, but is brittle. Here we’ll discuss why it is brittle, and why a superior technique can't work without children-count().

read entry

Column-filled grids: the technique

5 May 2026 | tagged as CSS

I have a grid that I want to fill with items, not row by row, as usual, but column by column. At the same time, I want to set a maximum number of columns, and add rows as needed, as a regular row-by-row grid does. To do so I created the technique described here. It's not perfect.

read entry

Demystifying block formatting contexts

16 April 2026 | tagged as CSS

Today, let’s demystify block formatting contexts by declaring them properly and by explaining them as 'getting an element ready to scroll'.

read entry

Safari :has(:empty) bug

10 April 2026 | tagged as CSS Safari

This week I spent too much time on a Safari :has(:empty) bug. I wanted to know if my huge brain lobe dedicated to browser bugs is still in working order after years of disuse. It was, and I even found a workaround, but I won't do this very often.

read entry