JSFiddle - React, Tailwind, and code Playground
HTML
<p>
000000
</p>
<p>
oooooo
</p>
<p>
OOOOOO
</p>
CSS
p {
font-family: times;
max-width: 4ch;
overflow: hidden;
text-overflow:ellipsis
}
<p>
000000
</p>
<p>
oooooo
</p>
<p>
OOOOOO
</p>
p {
font-family: times;
max-width: 4ch;
overflow: hidden;
text-overflow:ellipsis
}