[jQuery] Re: CSS - height and top position

2008-09-29 Thread ricardobeat
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

[jQuery] Re: CSS - height and top position

2008-09-29 Thread Rene Veerman
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 m