I am trying to create a nav bar which contains a logo and some tabs.
I want the logo to appear on the left and the tabs (a tags) to appear evenly spaced on the right of the logo
Here's an example
LOGO | Home | About | Contact Me
This would cover the entire header width
This is what I have for as my html:
.headerContainer {
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid #ccc;
}
ul {
list-style-type: none;
display: flex;
width: 100%;
justify-content: space-evenly;
}
nav {
width: 100%;
}
img {
width: 15%;
}
<header>
<div class="headerContainer">
<div class="logo">
<img src="https://via.placeholder.com/2667x571">
</div>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact Me</a></li>
</ul>
</nav>
</div>
</header>