JSFiddle - React, Tailwind, and code Playground

by aka_SKIff

HTML

<ul>
  <li>One</li>
  <li>Two</li>
  <li>Three</li>
</ul>

<ul>
  <li>One</li>
  <li>Two</li>
</ul>

CSS

ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-top: 50px;
}

li {
  flex: 1 1 33%;
  height: 30px;
  background: red;
  list-style-type: none;
}

li:nth-child(2n) {
  background: green;
}