JSFiddle - React, Tailwind, and code Playground
HTML
<div class="overme">
how much wood can a woodchuck chuck if a woodchuck could chuck wood?
</div>
CSS
.overme {
width: 300px;
height: 60px;
line-height: 30px;
overflow:hidden;
font-size: 30px;
color: red;
background: #333;
/*The problematic part is below*/
white-space:nowrap;
text-overflow: ellipsis;
}