- It spaces out as many boxes as will fit in the container
- when it line breaks the boxes that drop are centered
- a few lines of CSS control it all. As many boxes as you want to put on a page.
- the only extra markup is the span tags
Resize the width of your browser window to watch it work.
View the source to see how it's done.