Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)

Padding allows you to add space around an element, inside of the element's border.

padding

Usage

A shorthand property that allows you to set all the padding properties in one declaration.

Values

padding-top, padding-right, padding-bottom, padding-left.

padding-bottom

Usage

Sets the bottom padding of an element.

Values

length, %.

padding-left

Usage

Sets the left padding of an element.

Values

length, %.

padding-right

Usage

Sets the right padding of an element.

Values

length, %.

padding-top

Usage

Sets the top padding of an element.

Values

length, %.

Категории