One way to address this issue is by utilizing CSS. By creating a navigation element that encompasses the logo and two unordered lists on either side, you can adjust the positioning of the image to achieve the desired centered effect. Below are the HTML structure and accompanying CSS code that can be implemented:
HTML:
<nav>
<ul>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
</ul>
<div>
<img src="https://via.placeholder.com/150" alt="">
</div>
<ul>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
</ul>
</nav>
CSS:
nav {
width: 100vw;
height: 50px;
margin-top: 30px;
display: flex;
flex-flow: row nowrap;
}
ul {
height: inherit;
display: flex;
flex-flow: row nowrap;
list-style: none;
margin-left: 50px;
}
li {
padding: 20px;
}
div {
position: relative;
}
img {
position: absolute;
height: 100px;
width: 100px;
top: -20px;
}