HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

padding

Description

The padding property for CSS 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

1 · length

2 · percentage

3 · JS