Imagine you have a container that fills 100% of the page with a footer positioned at the bottom left within that container. The footer is set to be at left:0px and bottom:0px.
Using JQuery, is it possible to detect the height of the container and, if it falls below a certain threshold, remove the CSS that positions the footer at 0px 0px?
Here is a sample HTML structure:
<div class="container">
<div class="footer">
</div>
</div>
And here is a sample CSS styling:
.container { width:100%; }
.footer { height:42px; position:absolute; bottom:3px; left:0px; width:100%; }