CSS Margin-right Property

The Margin-right Property of CSS is used to control the right-margin of elements on a page.

margin-right is used to set the right-margin of a given element, most elements can have their margins changed.

Possible Values

Example:

The following example sets the right-margin of paragraphs to 1em. Paragraphs will have the distance of 1em, to its containing elements right-edge.

p {
  margin-right: 1em;
}

Inherited? NO!