Click here to view the code on jsBin
I quickly copied HTML/CSS code to jsBin using a tool called SnappySnippet.
I attempted various solutions, but none of them worked. The best option for me seems to be overflow: ellipses
- word-break: break-word;
- word-break: break-all;
- white-space: pre;
- text-overflow: ellipsis;
Here is the CSS code snippet:
#DIV_1 {
bottom: 0px;
...
}
#SPAN_7 {
box-sizing: border-box;
color: rgb(51, 51, 51);
...
}/*#SPAN_7:before*/
Below is the corresponding HTML structure:
<div id="DIV_1">
<label id="LABEL_2">
Invitees
</label>
<div id="DIV_3">
...
... <span id="SPAN_7">A very very long name A very very long name A very very long name <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="016d6e6f666f606c64416d6e6f6...
...
</div>