margin-right

Support Key: [CSS1|CSS2|CSS2.1] [IE3B1|N4B2|O3.5|S1]
Other Margin Properties
margin
margin-top
margin-bottom
margin-left
= Index DOT Css by Brian Wilson =
  Main Index | Property Index | CSS Support History | Browser History  



   Quick Statistics   
Default Value:
   0
Applicable Elements:
ALL
Inherit From Parent:
No
Applicable Media:
Visual
HTML Equivalent:
NA
Official Docs:
CSS1: Sect. 5.5.2
CSS2: Sect. 8.3, CSS2.1: Sect. 8.3
What is it?
This property controls the size of the right margin of an element's rendering box. Negative values are allowed. Margins are transparent and the background value of the parent element shines through.

Collapsing margins: adjoining horizontal margins between elements should not collapse.

Allowed Values
inherit
[CSS2|CSS2.1] [N6|O7|S1]
Type: Explicit
Description:
Explicitly sets the value of this property to that of the parent.
auto
[CSS1|CSS2|CSS2.1] [IE3B1 |N4B2|O3.5|S1]
Type: Calculated
Description:
This value specifies that a value determined by the browser be used for this property.
[length]
[CSS1|CSS2|CSS2.1] [IE3B1|N4B2|O3.5|S1]
Type: Explicit
Description:
Refers to either an absolute measurement or a relative measurement based on the current element's font size.
[percentage]
[CSS1|CSS2|CSS2.1] [IE3B1|N4B3|O3.5|S1]
Type: Calculated
Description:
Refers to a percentage of the width of the current element's containing block.
Example
Ext/Doc: h1 { margin-right: auto }
In-Line:  <h1 STYLE="margin-right: auto">This is a test</h1>
Browser Peculiarities

Boring Copyright Stuff....