My nav
is causing some trouble - the header looks good, but the ul
just won't cooperate.
.nav {
display: flex;
justify-content: space-between;
align-items: center;
}
nav ul {
margin: 0;
padding: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
nav ul li {
list-style: none;
position: relative;
}
<div class="nav">
<h2>hackeryou</h2>
<nav>
<ul>
<li>Home</li>
<li>About</li>
<li>Contact</li>
<li>Bootcamp</li>
<li>Part-Time</li>
</ul>
</nav>
</div>
I want to keep the h2
on the left, but I need everything else on the right to have more spacing.