DEV Community

Discussion on: Create a navbar with CSS flexbox

nnowwakk profile image

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?

jungjungie profile image
Esther M Author

You're right! That's probably simpler.