<div class="w3tr">
  <div class="renk1">1</div>
  <div class="renk2">2</div>
  <div class="renk3">3</div>
  <div class="renk4">4</div>
  <div class="renk5">5</div>
</div>
.w3tr{
    width: 200px;
    height: 200px;
    border:1px solid red;
    display: flex;
    flex-wrap: wrap-reverse;
}
.w3tr div{width: 50px; height: 50px;}
.renk1{background: #00FFFF;}
.renk2{background: #DC143C;}
.renk3{background: #6495ED;}
.renk4{background: #FF1493;}
.renk5{background: #FF4500;}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.