I'm struggling with aligning the navigation buttons on my nav bar to the left and the signup/login links to the right. I attempted to create separate navbars for each, but it's causing issues in my code.
I tried using ':last-child' but didn't have any success...
.nav-wrapper ul {
float: left;
padding-left: 50px;
}
.nav-wrapper ul li {
display: inline-block;
}
.nav-wrapper ul li:not(:first-child) {
margin-left: 36px;
}
.nav-wrapper ul li:last-child {
margin-right: 18px;
float: right;
}
.nav-wrapper ul li a {
display: inline-block;
outline: none;
color: #333333;
text-transform: uppercase;
text-decoration: none;
font-size: 14px;
letter-spacing: 1.24px;
font-family: 'Montserrat', sans-serif;
font-weight: 800;
font-style: normal;
}
<nav class="nav-bar">
<input type="checkbox" id="nav" class="hidden">
<label for="nav" class="nav-btn">
<i></i>
<i></i>
<i></i>
</label>
<div class="logo">
<a href="#" class="name">"logo"</a>
</div>
<div class="nav-wrapper">
<ul class="list">
<li><a href="index.php">Home</a></li>
<li><a href="collections.php">Collections</a></li>
<li><a href="contact.php">Contact</a></li>
<li><a href="login.php">Log In</a></li>
<li><a href="signup.php">Sign Up</a></li>
</ul>
</div>
</nav>