Fork me on GitHub

Hello my name is Pui, I am a web developer based in London.

css-flex-box

29 January 2013

Playing around with CSS Flex Box. Currently only works in Opera.

CSS as follows:

#container { display: flex; justify-content: space-around; align-items: center; margin-top:2em;}
#container div { flex:1 1 auto; padding: 0 2em;}
.box-2 { order: 1;}

See it in action here: CSS Flex Box

Some sources:

Quick hits with the Flexible Box Model - HTML5Rocks

An Introduction to the CSS Flexbox Module - Nettuts+

CSS Flexible Box Layout Module - W3C

About the author

Pui-Ling Lau, front end web developer and designer based in Kent and London

Pui is a User Experience developer working as a contractor in and around London.