The shortening of properties is very much a bad idea and should be avoided. "What the hell is `mb`?" is going to come up a lot.
document.body.style.marginTop = '200px'
The non-camel-case version works as well (in modern browsers, there was a time when browsers supported either one or the other): document.body.style['margin-top'] = '400px'I still don't know what `my` means.
- m = margin on all sides
- mt = margin top
- mb = margin bottom
- ml = margin left
- mr = margin right
- mx = margin on x axis (left & right)
- my = margin on y axis (top & bottom)