Menu
Riverview Church

PADDING

The padding property is shorthand for padding-top, padding-right, padding-bottom, and padding-left.

SYNTAX

CSS

padding: value;

JS

object.style.padding = "value";

VALUES

<'padding'> = <'padding-top'>{1,4}
<'padding-top'> = <length-percentage>
<length-percentage> = [ <length> | <percentage> ]
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

INITIAL

0

EXAMPLES

LENGTH

PERCENTAGE

JS

INTERNAL

padding-bottom

padding-left

padding-right

padding-top

EXTERNAL

World Wide Web Consortium (W3C)