I think this is a pretty straightforward problem but...
var outerHeight = $(\'.profile\').outerHeight(); $(\"#total-height\").text(outerHeight + \'px\');
jQuery functions that don't return a jQuery object operate only on the first member of a list.
If you want to iterate over all .profile elements, you can use .each()
.profile
.each()
var totalHeight = 0; $('.profile').each(function(i, e) { totalHeight += $(e).outerHeight(); });