You will find 3 examples of toolbar. If you mouse over each toolbar you'll see that the first solution is not maintanable when the height changes. Flexbox allows you with just a few lines to have a maintanable toolbar layout.

BAD** Float positionning and fixed margin

title

GOOD** Flexbox with space between

title

GOOD** Flexbox with margin auto

title