Syntax | selector {margin-right: value ;}
|
---|---|
Usage | The margin-right property is used to specify the width of the right side margin. See the Box Model for a description of the boxes that are generated for elements and the relative position of the margins. This property is specified by using a length, percentage, or keyword, according to the syntax shown above. If a percentage value is used, the value will be a percentage of the containing block's width. |
Keywords |
|
Applies To | All elements except elements with the following display types: table-row-group, table-header-group, table-footer-group, table-row, table-column-group, table-column, table-cell. |
Inherited | No |
Initial Value | 0 |
The margin-right property is set using a length value. |