Edit in JSFiddle


              

              
body {
  direction: rtl;
}
.red, .green {
  float: left;
  width: 100px;
  height: 100px;
  display: inline-block;
}
.red {
  background-color: red;
}
.green {
  background: green;
}