Translation of http://ptb2.me/flexbox/