A solution could be to add display: block;
to section
(or whatever other display style, such as inline-block
)
This changes slightly the appearance, but maybe you can work on other rules to get the desired result.
In general, I think that adding display: flex;
to all elements (body *
rule) is too broad, and maybe could lead to undesired results.
Working fiddle on Chrome: http://jsfiddle.net/P9Ftp/4/