Padding
Number¶
If this value is a number, it is applied to all sides (left, top, right, bottom).
Object {top, left, bottom, right}
¶
If this value is an object, the left
property defines the left
padding.
Similarly, the right
, top
and bottom
properties can also be specified. Omitted properties default to 0
.
Object {x, y}
¶
This is a shorthand for defining left/right
and top/bottom
to the same values.