I have html like below , I want to align last item to the flex end and remaining items in flex start in flexbox column.
<div class="container">
<div class="leftlist">
<div class="watchlist lefticons">
<i class="fas fa-bookmark"></i>
</div>
<div class="watchlist lefticons">
<i class="fas fa-user"></i>
</div>
<div class="watchlist lefticons last">
<i class="fas fa-sign-out-alt"></i>
</div>
</div>
</div>
and Css like below
.container
{
left: 0;
z-index: 2;
position: fixed;
height: 100%;
width: $leftbarwidth;
border-right: 1px solid rgb(233, 233, 233);
background-color: rgb(255, 255, 255);
}
.leftlist
{
display: flex;
flex-flow: column nowrap;
align-items: center;
}
.lefticons
{
cursor: pointer;
flex: 1 1 auto;
width: 100%;
font-size: 22px;
text-align: center;
padding: 12px 3px;
color:#ff5722;
text-align: center;
margin: auto;
border-bottom: 1px solid rgb(233, 233, 233);
}
And the result looks like below , how do I move the item with class .last to the bottom.I tried something like below where I tried align item aswel as align content but still it does not seems to work , but it does not move the last element to the bottom.
.last
{
margin-top:auto;
align-self: flex-end;
align-content: flex-end;
}
