<style>
body {
  color: transparent;
}
.floaty {
  background: green;
  float: left;
  height: 100px;
  width: 100px;
}
.rtl {
  direction: rtl;
  margin-right: 50px;
}
</style>
<div><div class=floaty></div>X<div class="floaty rtl"></div></div>
