JS get the padding of the parent code example Example: js get element padding window.getComputedStyle(element, null).getPropertyValue('padding-left')