Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
body {
  background-color:#E7E9EB;
}
#myDIV {
  height:300px;
  background-color:#FFFFFF;
}
.bluediv {
  float:left;
  width:200px;
  background-color:lightblue;
  margin-right: 25px;
}
.reddiv {
  width:200px;
  background-color:coral;
  float:left;
}
</style>
</head>
<body>
<h1>The margin-right property</h1>
<div id="myDIV">
  <div class="bluediv">
    See this blue div element with different margin-left values.
  </div>
  <div class="reddiv">
    We inserted a red div here, to see the right margins of the blue div.
  </div>
</div>
</body>
</html>