<div class="container">
    <div class="A"></div>
    <div class="B"></div>
    <div class="C"></div>
    <div class="D"></div>
  </div>
body {
  margin: 0;
}
.container {
  width: 300px;
  height: 200px;
  background-color: rgb(223, 190, 190);
  display: flex;
  flex-direction: column;
}

.A {
  margin-bottom:auto;
  margin-left: 40px;
  width: 30px;
  height: 20px;
  background-color: rgb(236, 144, 58);
}

.B {
  margin-left: 40px;
  width: 30px;
  height: 20px;
  background-color: rgb(32, 202, 75);
}

.C {
  margin-left: 40px;
  width: 30px;
  height: 20px;
  background-color: rgb(6, 100, 143);
}

.D {
  margin-left: 40px;
  width: 30px;
  height: 20px;
  background-color: rgb(202, 32, 32);
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.