You are here : cssCSS 3margin

margin - CSS 3

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


Syntax

margin: length|auto|initial|inherit;


Example

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


Output / Return Value


Limitations


Alternatives / See Also


Reference