I'm using Ryan Fait's Stick Footer solution , but I wanted to leave it making it more dynamic using JavaScript, allowing the height of the footer to automatically calculate the other values of the CSS properties of the other elements. It can be included inline itself.
So far I have achieved something similar to what I want in this function in jQuery. Can someone give me some help?
Detail, I replace .wrapper
of Ryan's solution with #content
in my code.
$(function(){
var footerHeight = $(".footer").height();
$("#content").css("margin-bottom", -footerHeight);
$(".push").css("height", footerHeight);
});