I have a fixed sidebar with two ul elements. I attempted to position the blue ul at the bottom of the fixed div, but it is not aligning as intended.
<div class="sidebar">
<ul style="background:green;">
<li>test</li>
<li>test</li>
<li>test</li>
</ul>
<ul class="align-bottom" style="background:blue;">
<li>test</li>
<li>test</li>
<li>test</li>
</ul>
</div>
<div class="main">
MAIN CONTENT
</div>
.sidebar {
position: fixed;
top: 0;
left: 0;
z-index: 1;
height: 100%;
overflow-x: hidden;
background: grey;
width: 150px;
}
.main {
position: absolute;
top:0;
left: 150px;
z-index: 1;
}
.align-bottom {
position: relative;
bottom:0;
width: 100%;
}
https://jsfiddle.net/fj0b6jx3/6/#&togetherjs=2v1pIMRuTT
Can anyone help me figure out what mistake I made in my code?
Appreciate any assistance in advance.