Change margin with JavaScript
Click the "Try it" button to change the margins of the DIV element:
Try it
This is my DIV element.