Answer the question
In order to leave comments, you need to log in
Press the banner to the bottom?
There is a banner on top of the image which I push to the bottom of the viewable area like so:
document.getElementById('myBanner').style.top = $(window).height() - document.getElementById('myBanner').clientHeight + "px";
Answer the question
In order to leave comments, you need to log in
In general, it's strange to do this in JS. Style is usually enough. An example on some codepen would be
Maybe not quite right, but as an option to use positioning css
position:absolute;
bottom: 0px;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question