JSFiddle - React, Tailwind, and code Playground
HTML
<span>
<span>test</span>
<div></div>
<span class="huge">
hello! hello! hello! hello! hello! hello! hello! hello! hello! hello! hello! hello! hello! hello! hello! hello! hello
</span>
</span>
CSS
span {
vertical-align:middle;
}
div {
display: inline-block;
width: 100px;
height: 100px;
background: red;
vertical-align:middle;
}
.huge {
font-size: 44px;
}