#parentbox {
  display: flex;
  width: 600px;
  border: 1px solid;
  justify-content: flex-end;
}
#parentbox > div {
  height: 145px;
  margin: 5px;
  background-color: #CCCCCC;
}
#box-1 {
  width: 100px;
}
#box-2 {
  width: 100px;
}
#box-3 {
  width: 100px;
}
#box-4 {
  width: 100px;
}