Thumbnail grid examples

This is a list of examples for the state of the art in HTML thumbnail grids over time. It's self-contained, using only a single external 100×100 image and some CSS.

The goal is a grid of thumbnails that:

The final example is the desired behavior.

Return to the accompanying blog post

1996: Tables


Caption

Caption

An especially long and kind of obnoxious caption, used to check edge case behavior

Caption

Caption

Caption

Caption

Caption

Caption

Caption

Caption

1998: Floats

2008: inline-block

2014: Flexbox

2017: Grid