One of the simplest image gallery layouts is a square grid with centered images, like the Adobe Lightroom screenshot below.
There are many similar questions (1) (2) (3), but all these involve square images and a square grid. Mine is more general, because it involves rectangular images and a square grid.
I’ve spent a long time trying to reproduce exactly the screenshot below using css flexbox and inline-box, but always failed to get the centering exactly right:
flex: jsfiddle.net/rmodrak/4sxzkonr/
inline-block: jsfiddle.net/rmodrak/wmunqzL6/
It’s hard to believe css doesn’t natively support such a layout. Am I missing something?