margin-right: 20px;

5.15 image

You can add any combination of the four different margins to your element, top, and bottom, top and right, right and left, etc.

Nice and simple, right? Well, it gets even easier, just like with border and background, we get an easy margin property to wrap this all up in. It works exactly as you would expect. The margin property keyword, followed by values for top, right, bottom and left, like so: