I'm trying to have the margin-bottom of an element being altered to the height of the next() element plus 12px. I tried the following, but this doesn't work.
$("div.entry-content").css("margin-bottom", $(this).next().outerHeight() + 12 + "px");
Any idea what goes wrong?