I am loading html pages into a div using jQuery. How can I target the body of the html pages to apply margin using jquery/css? I can do it manually on each html page but I was looking for a quicker way.
My attempt(which isn't working):
$myDiv= $targetDiv.find("#targetContent");
$myDiv.load($(this).attr('href'));
$myDiv.find("body").css("margin-top","50px");
link: