I'm trying to place the navigation at the bottom with flex-end
.
I'm not sure what's causing it not to place at the bottom. I know I can place it with position absolute, trying to avoid that.
<header>
<div class="header__logo">
<a href=""></a>
</div>
<nav>
<ul>
<li><a href="#">one</a></li>
<li><a href="#">two</a></li>
<li><a href="#">three</a></li>
<li><a href="#">four</a></li>
</ul>
</nav>
<div class="search"></div>
</header>
header {
background: deepskyblue;
display: flex;
padding: 20px 0;
.header__logo {
background: aqua;
flex: 20%;
min-height: 140px;
}
nav {
background: #111;
flex: 78%;
ul {
list-style: none;
margin: 0;
background: aquamarine;
display: flex;
justify-content: flex-end;
align-items: flex-end;
}
a {
text-decoration: none;
display: block;
padding: 1em;
color: white;
}
}
.search {
background: #fff;
flex: 12%;
}
}