perhaps:
var $c = $('#content'); $('#footer').css({ height: $c[0].offsetTop + $c[0].offsetHeight + 5 }); Filipe Avila wrote:
hey, everyone. how can i get the height of an element and, based on its given height, set the position of another element from the top? for example, if there's too much text in the content div, improves the distance of the foot div from the top.