2020-06-14
Truncate string with ellipsis
<div>Tootsie roll pastry.</div>
div {
width: 100px;
background: #eee;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
<div>Tootsie roll pastry.</div>
div {
width: 100px;
background: #eee;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
Comments