Skip to Content


CSS Reference / margin-right

margin-right

Sets the right margin of an element. Negative values are allowed.

Values:

  • auto
  • length
  • %

Examples:

  1. margin-right: 2px;
  2. margin-right: -20%;

Browser support:

  • Internet Explorer 4+
  • Netscape 4+
  • Opera 3.5+

Related properties:

back to list



Search

Sponsors

Logo design for $149

Advertise here