Home | CSS Tutorials | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Syntax: | margin-right: <value> |
---|---|
Possible Values: | <length> | <percentage> | auto |
Initial Value: | 0 |
Applies to: | All elements |
Inherited: | No |
The margin-right property sets the right margin of an element by specifying a length or a percentage. Percentage values refer to the parent element's width. Negative margins are permitted.
Example:
P.narrow { margin-right: 50% }
Note that adjoining horizontal margins are not collapsed.
Maintained by John Pozadzides and Liam Quinn
Copyright © 1997 John Pozadzides and Liam Quinn. All rights reserved.
Home | CSS Tutorials | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |