flexbox styling for nodes, solves float layout problems