Looking for a way to position the last two li
elements at the bottom of a large-height ul
element while keeping the rest at the top.
The implementation can be viewed here.
Here is an example of the code:
.my-ul {
height: 90vh;
width: 40%;
background-color: grey;
}
<div id="demo">
<ul class="my-ul">
<li>First Element</li>
<li>Second Element</li>
<li>Third Element</li>
<li>Fourth Element</li>
<li>Fifth Element</li>
</ul>
</div>
Tried different solutions from here and here, but unfortunately, they are not working.