I’ve looked: How to set margin with jquery?
This is what I am trying:
$(document).ready(function () {
$(".content").each(function (el) {
el.css('margin', '0px');
})
});
This isn’t working though; right now I have to set the margin to zero in the style sheet.
This ought to do the trick.
The problem is you are setting the margin on the element itself, and not on its children.
The selector
.content *means “anything inside an element with class content”. (Anything, and not just direct children.)