You are here : cssCSS 3padding

padding - CSS 3

The padding shorthand property sets all the padding properties in one declaration. This property can have from one to four values.Examples:Note: Negative values are not allowed.


Syntax

padding: length|initial|inherit;


Example

p 
	{
	   
	padding: 2cm 4cm 3cm 4cm;
	}


Output / Return Value


Limitations


Alternatives / See Also


Reference