Dynamic Number of Flexible Columns in CSS Grid Lanes

When I saw that display: grid-lanes was coming I realized I could soon get rid of my masonry JavaScript layout and enjoy browser-smooth layout instead. But I couldn't get what I wanted: a dynamic number of columns, where each column was at most MAX-WIDTH wide, but could shrink to MIN-WIDTH to fit more columns. After playing around a bit I came up with this:

2026-07-23More

Winter Babies

That's what these two are called.

2026-07-22More

Getting Ducklings in a Row

All twelve of them.

2026-06-30More

Littler Crested Grebes

When taking a stroll I saw this family of Great Crested Grebes. I immediately ran home, grabbed the 150-600mm. It quickly became apparent that mommy and daddy Grebe mostly wanted to sleep, but little Grebe was full of energy and kept chirping.

2026-06-19More

Gasworks

The remains of the Värta Gas Works naphtha steam reforming plant that stood here until January 2011.

2026-06-05More

The Fluffballs of Husarviken

The ducks had kids, too.

2026-06-01More

Littlest Crested Grebe

A pair of great crested grebes have had additions to the family.

2026-06-01More

Supernumerary Rainbows

We've had some sunshowers lately.

2026-05-28More

What Coding Assistants Excel At

After using coding assistants a bit, I think I know what they excel at, and what they do less well.

2026-05-26More

Failure Modes of AI in Software Development

Everything old is new again.

2026-05-26More

AI as a Junior Developer

The short summary of where AI is in its coding skills in mid-2026 is this: AI is like a junior developer. If you have use for junior developers, AI will help you; and if you don't, it won't.

2026-05-26More

National Museum of the Marine Corps

A museum dedicated to the few and the proud.

2026-05-23More

Great Falls Park

The Great Falls of the Potomac River. Part of the Great Falls Park.

2026-04-30More

A Detour to Husarviken

After the cherry blossoms, I popped down to the jetties for some reflections.

2026-04-30More

Fish Park Playground Cherry Blossoms

I was going to hit the gym, but got sidetracked. High clouds, starting to light up in color, cherry blossoms, in full bloom... and I knew I wouldn't be able to do a single rep unless I first grabbed my camera and photographed this.

2026-04-30More

Morning Serenade

Spring is here, and with that, early sunrises and birds.

2026-04-10More

Next Station: Igelbäcken Nature Reserve

Erik Eckersten, a student at the SLU wrote Next station: Igelbäcken nature reserve, subtitled Design of an abandoned subway station into an entrance to a nature reserve. I find it a bold transformation of the now unfinished and abandoned subway stop.

2025-07-14More

Animated Mandelbrot Orbits

Anyone who has done any computer-generated graphics has come in contact with the Mandelbrot set.

2017-03-05, updated: 2017-03-25More

Ziphead by CNCD and Fairlight

When I first watched the winner of the PC demo competition of Revision 2015, I was underwhelmed. CNCD and Fairlight have turned out some nice productions previously, like Agenda Circling Forth, but the moment I saw a neon / black corridor with wub coming out of the speakers I tuned out. When I was fed a flashing sequence of words with some drug names thrown in for that highschool-grade "edgy" feeling I dropped out.

2015-04-13More

IT Startup: The Technical Parts

A lecture I held at the Summer School of Science (S3++) in Požega, Croatia.

2013-09-01More