CSS Set Div 'top' With Jquery From Div 'height'
Answer :
You will need to set the css property 'top' on the #footer div, not call .top() on the div itself.
$("#footer").css('top', $("#text").height() + "px");
or along those lines
Replace .top
with .offset({top: somenumber})
http://api.jquery.com/offset/
Comments
Post a Comment