I have something like this:
<div> <span> text text text text text text </span> </div> div{ width:100px; border: 1px solid black; line-height: 12px; height: 16px; position: relative; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; } span{ position: absolute; overflow: hidden; text-overflow: ellipsis; } And ellipsis doesn't work. I do not necessarily need to use position: absolute, but as result I should have text, that doesn't expand div and truncated width ellipsis.
P.S. Width for div is included for sample, in reality div width is unknown.