Cross-browser implementation of CSS flex