The 
flexible box layout (flexbox) is a
great spec. The flex-direction property allows rearranging the position of
children inside a flex container. This works in pretty much every browser —
even defunct ones like
Internet Explorer. Don’t work
hard and write JavaScript, be lazy and write CSS.
