Improve layout using flex

I'm unclear what these margin adjustments are for.   I guess I haven't done a layout with both column and row layouts to see it's effects?