CSS margin Property

The css margin property is shorthand to allow you to set all four margins of an element at once. Its equivalent longhand properties are margin-top, margin-right, margin-bottom and margin-left. Negative values are also allowed.

Syntax for margin property

margin-width{1,4} | inherit