JSFiddle - React, Tailwind, and code Playground

by Liu David

HTML

<ul>
    <li><span>One</span></li>
    <li><span>中文</span></li>
    <li><span>Three</span></li>
    <li><span>Four</span></li>
    <li><span>Five</span></li>
</ul>

CSS

body {
 font-family: Arial, sans-serif;
 font-size: 14px;
    white-space: nowrap;
}

ul {
 list-style-type: none;
 padding: 0;
 margin: 0;   
}

li {
 border-bottom: 1px solid red;      
 display:inline;  vertical-align:bottom;  
 margin-left: 10px;
 height: 70px; /* height of largest element */
}

span {
 font-weight: bold;
}

li:nth-child(2) {
 font-size: 2em;   
}

li:nth-child(3) {
 font-size: 3em;   
}

li:nth-child(4) {
 font-size: 4em;   
}

li:nth-child(5) {
 font-size: 5em;   
}

p {
    line-height: 50px;
    background-color: red;
    margin: 20px 0;
    vertical-align: bottom;
}