Properties
CSS
margin
The margin property is a shorthand property for setting margin-top, margin-right, margin-bottom, and margin-left.
margin: [ <length> | <percentage> | auto ]{1,4} | inherit
| Initial: | 0 |
| Applies To: | all elements except elements with table display types other than table-caption, table and inline-table |
| Inherited: | no |
| Percentages: | refer to width of containing block |
| Media: | visual |
DOM
[window.]document.getElementById("element-id").style.margin = "margin-top margin-right margin-bottom margin-left";
