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

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy