The best option for this is the new CSS Flexible Box Layout Module or "flexbox".

http://html5please.com/#flexbox has a good summary of it and gives a few links on how to use it effectively. Note that some browsers might be using the "older" standard, as the latest version of the spec has only just hit "last call" status.

http://dev.opera.com/articles/view/flexbox-basics/
https://developer.mozilla.org/en-US/...flexible_boxes
http://demo.agektmr.com/flexbox/

There is also a flexbox polyfill available for browsers that lack support for the latest spec.