That's doable in CSS in various ways:

#container { padding-bottom:50px; }
#footer { height:50px; position:absolute; bottom:0 }

or with a simple

#footer { clear:both }

will keep the footer under everything else.

- Ricardo

Rene Veerman wrote:
> 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.
> >
> >
> >

Reply via email to