How can I have my button and checkbox fixed at the bottom of my div. I am able to get my scroll-able working as well. My problem is the button and the checkbox are not fixed at the bottom.
So when I populate the div with text, the text overflows the button and the checkbox but how can I make the text be contained in the scroll-able and not overflow the button and the checkbox?
#chk {
float: left
}
.btn {
float: right
}
<div style="height:40%; overflow: scroll;" class="panel" id="panel">
<!--inner part of the div which contains the text (scrollable is applied here) -->
<input id="chk" type="checkbox" /> <!-- should be on the left bottom of the div -->
<button type="submit" class="btn">Button</button> <!--should be on the right bottom of the div (opposite the checkbox)-->
</div>