Floated thumbnail gallery, different sizes, how to handle?

Wesley picture Wesley · Jul 20, 2011 · Viewed 12.8k times · Source

When simply doing float:left to all thumbnails of the same size, a gallery looks great. But when different size thumbnails come in to play, that is no longer the case.

What is the best way to handle different size thumbnails? Do I need to use tables instead?

example

Answer

thirtydot picture thirtydot · Jul 20, 2011

None of the possible CSS solutions look particularly good.

I recommend using JavaScript+jQuery instead, specifically one of these plugins: