I see, I think flexbox would be a nice solution but I'm not really sure about it depending on what browsers this project is supporting. Looking at http://caniuse.com/flexbox seems IE < 10 doesn't have any support for it but every other browsers seems to be ok with it.