Margin

The CSS Margin property it is used to set the space around an html element.
The margin values are: auto, length (px, pt, cm), %, inherit.

The Margin properties are:

  • margin
  • margin-left
  • margin-right
  • margin-top
  • margin-bottom

Margin example:

<html>
<head>

</head>
<body>

My standard paragraph.

Paragraph with margin declared.

Paragraph with a specified margin bottom.

Paragraph with a specified margin to left.

</body> </html>



My standard paragraph.

Paragraph with margin declared.

Paragraph with a specified margin bottom.

Paragraph with a specified margin to left.