Is there a way to adjust the margin-bottom of an element based on the height of the next() element plus 12px? I attempted the code below but it didn't yield the desired results.
$("div.entry-content").css("margin-bottom", $(this).next().outerHeight() + 12 + "px");
Any suggestions on what might be causing this issue?