I would like to align HeaderNavLinks to the left, center Logo, and align the remaining items Contact, Mailbox, Language, Admin to the right.
I'm actually limited to add an additional parent div for each of these elements.
Is there a way to do this? I can't seem to properly align the Logo at the center of the page.
.container {
display: flex;
}
.container>div:first-child {
margin-right: auto;
}
.container .center {
align-self: center;
}
.push {
margin-left: auto;
}
<div class="container">
<div>HeaderNavLinks</div>
<div class="center">Logo</div>
<div class="push">Contact</div>
<div>Mailbox</div>
<div>Language</div>
<div>Admin</div>
</div>