JSFiddle - React, Tailwind, and code Playground

HTML

<h1>
flexbox-Test für IE
</h1>

<ul class="bricks">
  <li class="brick">1</li>
  <li class="brick">2</li>
  <li class="brick">3</li>
  <li class="brick">4</li>
  <li class="brick">5</li>
  <li class="brick">6</li>
  <li class="brick">7</li>
  <li class="brick">8</li>
</ul>

CSS

.bricks {
  
  background-color:orange;
  width:870px;
  
  padding: 0;
  margin: 0;
  list-style: none;
  
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flexbox;
  display: -webkit-flex;
  display: flex;
  
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
  justify-content: space-between;
}

.brick {
  background: red;
  padding: 5px;
  width: 180px;
  height: 150px;
  margin-top: 10px;
  
  line-height: 150px;
  color: white;
  font-weight: bold;
  font-size: 3em;
  text-align: center;
}

.brick:nth-last-child(-n+4) {
 background-color:maroon;
}