i dont know what is wrong with this code.. it will just don't work even if it has the same syntax with the other one..
$(document).ready(function(){
$("#inner").animate({height:'200',top:'-100'},1000);
$("#inner").animate({width:'200',margin-left:'-100'},1000);
});
you can see the example here..