Written by jon on 11:34 PM
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.
Example |
h1 { margin-right: auto } <h1 style=”margin-right: auto”>This is some text</h1> |
|
|
Possible Values |
Value Description inherit | Explicitly sets the value of this property to that of the parent. | auto | This value specifies that a value determined by the browser be used for this property. | [length] | Refers to either an absolute measurement or a relative measurement based on the current element's font size. | [percentage] | Refers to a percentage of the width of the current element's containing block. |
|
|

| Posted in »
CSS Margins
Related Posts by Categories
0 comments: Responses to “ CSS MARGIN-RIGHT ”