Topic: div height problem


I have a div in wich I load my content with ajax..and I want the div height to change according to the content size..the problem is that everytime the div's height is smaller than the is the site..

and this is the script that changes the div height
var x = $('blogs').getSize().size
$('wrapper').setStyle('height', x);

can someone help me with this problem??

thank you!!