JSFiddle - React, Tailwind, and code Playground
by Chris LaFrombois
HTML
<ul class="flex-list">
<li>1</li>
<li>2</li>
<li>3</li>
<li class="right">4</li>
<li>5</li>
</ul>
CSS
.flex-list {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
position: relative;
}
.flex-list li {
font-family: Arial, sans-serif;
font-size: 13px;
padding: 15px 18px;
border: 1px solid #069;
color: #777;
font-weight: bold;
position: relative;
}
.flex-list li:nth-of-type(4) {
margin-left: auto;
}