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
Post a Comment