CSS Property:
margin-right:

Result:
myBox
CSS Code:

div#myBox {
  background-color:red;
  margin-right:auto;
}
  
Click the property values above to see the result
W3Schools.com - Play it