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