CSS Padding


Padding is the distance between the edges (borders) of an (X)HTML element and the content within it, and can be applied to any element.

Padding Declarations

Both length and percentage values are available, although there is no auto value, and negative values cannot be declared for padding.

Example

Welcome to Edututorials.com This container with Pedding proprety.

Padding Shortcuts

The shortcuts used for padding values are following.

Example

Welcome to Edututorials.com This container with Pedding proprety.