DEV Community

loading...

Discussion on: Create a navbar with CSS flexbox

Collapse
nnowwakk profile image
nnowwakk

Since the header only has two direct child elements and you want one of them to go to the left edge and the other one to the right edge (and since this is a flexbox article), wouldn't it make more sense to just add

justify-content: space-between

instead of playing with the margin?

Collapse
jungjungie profile image
Esther M Author

You're right! That's probably simpler.