r/webdev • • Jan 18 '23

CSS flex for speed learners.

6.5k Upvotes

100 comments sorted by

View all comments

17

u/Scoots1414 Jan 18 '23

Can someone explain the layout spacing for space-around? It looks like space-evenly, the outside and inside gutters all have equal distance, makes sense. But for space-around, the gutters on the outside don’t match the gutters between A-B and B-C.

What is the flex calculating to determine the different gutter sizes for the outsides vs insides?

0

u/[deleted] Jan 18 '23

[deleted]

7

u/Scoots1414 Jan 18 '23

Thank you for explaining! Makes so much sense now looking at it again