# Set the right margin of an element with CSS

JavascriptWeb DevelopmentFront End Scripts

The margin-right property is used to set the right margin of an element. It can have a value in length, % or auto. You can try to run the following code to set the right margin

## Example

<html>
</html>