You are here : cssCSS 3margin-top

margin-top - CSS 3

The margin-top property sets the top margin of an element.Note:   Negative values are allowed.


Syntax

margin-top: length|auto|initial|inherit;


Example

p 
	{
	   
	margin-top: 2cm;
	}


Output / Return Value


Limitations


Alternatives / See Also


Reference