Properties
CSS
margin-top
The margin-top property sets the top margin of an element.
margin-top: <length> | <percentage> | auto | 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.marginTop = "margin-top";
