Last Updated: February 25, 2016
·
532
· maikudou

Use display: table-cell for long galleries

Then building a scrollable gallery don't use wrapper with width of 20000 pixels and a bunch of floated items

Just use display: table for wrapper and display: table-cell for items

It gives you easy width calculation as a bonus

Try it, almost every browser support it now!