<style>
div {
  background-color: green;
  width: 50px;
  height: 50px;
  text-align: right;
}
.inlineBox {
  display: inline-block;
}
</style>
<div><div class=inlineBox style="margin-right: 100px;"></div></div>
<div><div class=inlineBox style="margin-right: -100px;"></div></div>
<div><div class=inlineBox style="margin-left: 100px;"></div></div>
<div><div class=inlineBox style="margin-left: -100px;"></div></div>
