I have this row of items I'm displaying at the top of the page but I'm not quite sure how to get one of them to appear at the far right. The rest are aligned to the left. I tried align-self: flex-end
but that's not working. Here's the code:
.wrapper {
display:flex;
justify-content:flex-start;
align-items:flex-start;
}
a.nav, .search, .query {
display:inline-block;
}
.nav {
margin-left:25px;
}
.nav a {
margin-right:15px;
color:#515949;
transition:0.3s ease;
}
.nav a:hover {
color:#33382d;
}
.link-right {
align-self:flex-end;
}
<div class="wrapper">
<div class="nav">
<a href="/" title="link"><span class="lnr lnr-arrow-left"></span></a>
<a href="/" title="link"><span class="lnr lnr-envelope"></span></a>
<a href="/" title="link"><span class="lnr lnr-link"></span></a>
<form class="search" action="javascript:return false">
<input type="text" class="query" placeholder="search..."></form>
</div>
<a href="/" class="link-right" title="link"><span class="lnr lnr-plus-circle"></span></a>
</div>
The link with the class link-right is the one I'm trying to get on the right. I don't know if this makes a difference but as you can see there's also a search bar next to the links, also going on the left. Thanks!