Function: getPadding()

getPadding(el): object

Retrieves the padding values of an HTML element.

Parameters

el

HTMLElement

The HTML element for which to get the padding.

Returns

object

An object containing the left, right, top, and bottom padding values of the element.

bottom

bottom: number

left

left: number

right: number

top

top: number