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
justify-content: space-between
instead of playing with the margin?
You're right! That's probably simpler.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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?
You're right! That's probably simpler.