js get element padding

JavaScript
window.getComputedStyle(element, null).getPropertyValue('padding-left')
Source

Also in JavaScript: