js add padding to element code example Example: js get element padding window.getComputedStyle(element, null).getPropertyValue('padding-left')