Skip to content

Matthew Passmore

Website strategy & development

Links // layout

8th October 2019

Adaptive Photo Layout with Flexbox | CSS-Tricks

It amazes me that new techniques with relatively mature features are still cropping up. This is especially true when they're so practical as well.

This approach doesn’t fully respect the aspect ratios of photos (but it’s close) and occasionally leads to some weird results, but I absolutely love the simplicity and flexibility of it all.