I work on the header for a website and I have a problem with a flexbox. I want to put the logo (item2) in the perfect center no matter what items will be in item 1 or 3. The item1 I want to be always to be on the left and object 3 always to be on the right. Also if considered the object in the second box is an SVG graphic.
CSS:
header {
display: flex;
justify-content: space-between
}
.item {
}
.item2 {
}
.item3 {
}
HTML:
<header>
<div class="item">
Menu1 Menu2 Menu3 Menu4
</div>
<div class="item2">
logo
</div>
<div class="item3">
PL/ENG
</div>
</header>
It would be really nice if someone could help me solve this thing.
Edit: I changed code a bit to properly represent what I'm struggling with.