What's the best way to center several divs?
I can conceive of a few ways, but I'm looking for the simplest, most elegant.
Here is a link to a page that is doing it:
I am looking for something that is IE9+ safe.
Update 1
Just to clarify, I need to vertically center the row of divs, also.
Not a duplicate, the referenced questions centers horizontally only.
Update 2
This fiddle (http://jsfiddle.net/k6ShD/4/) almost does it, with minimal CSS, but I need to get those boxes centered horizontally.
align-items: center;
Update 3
Since the question has been closed, I'll put my answer here.
I knew there had to be a good clean way to do with with CSS3:
Basically,
display:flex;
align-items: center;
justify-content: center;
Are the keys to doing it with the flex box model.