CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS margin-top property




The CSS margin-top property set space margin of top border.


Property Values


Properties Value Description
Syntax margin-top:value;
value   Size_px
  percentage
  inherit    Lern More...
Allow to All elements
Inherited No

Example-Code:

<p style="margin-top:30px;">This example is Margin set space</p>
Online Try This Code Your Self....   »

Example-Result:

This example is Margin set space