Works with flexbox.

2

test

Completely seperates layout logic from resize logic. All layout logic must be done by you in the CSS (as it should be).

4