In an effort to align my navigation links with the bottom of the navbar, I am working on positioning them below the navbar. Here is the desired layout: https://i.sstatic.net/eFL5r.png
The goal is for the red section to start from the bottom of the navbar. Below is my current code:
CSS
.nav {
flex-direction: column;
align-items: flex-start;
position: relative;
}
.nav-links {
flex-direction: column;
align-self: center;
position: absolute;
background-color: red;
padding: 2rem;
top: 10rem;
width: 100%;
}
.nav-link {
padding: 1rem 0;
}
HTML
<div className='nav'>
<span className='logo'>Connect.</span>
<nav className='nav-links'>
<a href='#' className='nav-link'>Product</a>
<a href='#' className='nav-link'>Features</a>
<a href='#' className='nav-link'>Reviews</a>
<a href='#' className='nav-link'>Pricing</a>
<a href='#' className='nav-link'>FAQ</a>
<button className='button'>download</button>
</nav>
</div>