jquery - Adjust parent DIV height to inner content (RSS feeds) -


i'm embedding rss feed html site using google feed api. tried make parent-div adjust height jquery:

function setheightparent() {                 $("#parent").height($("#feed").height() + 200);                 } 

this results in parent-div height of 200 px. think height calculated before "feed" div has content therefore no height.. doing wrong, how can make take height of final "feed" div?

i got it...

amir kinda right delay.

solved this:

$(document).ready(function() {     function setheightparent() {         $("#parent").css("height", $("#feed").height() + 250);     } settimeout(setheightparent, 800) }); 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -