I am trying to get a div at the bottom of the viewport but it doesnt seem to be working right. I have this set up
html
<div class="parent">
<div class="bottom">
</div>
</div>
css
.bottom{
position:absolute;
bottom:0;
}
The trouble being that the parent div is getting its height from JS and adding some style to div dynamically like <div class="parent" style="height: 483px;">
so then basically the div doesnt show up at the bottom until I resize the screen. Is there a way to dynamically get the screen size then add the css to make the div stick to the bottom?