Hi the following code works perfectly in Chrome and Firefox but I cannot make it work in IE. I have tried display: -ms-flexbox
, but it does not help.
Html:
<div class="contener">
<span class="editableLabel">
<span class="contentTrimmed">aaaa bbbb cccc dddd eeee ffff gggg hhhh iiii jjjj kkkk llll mmmm nnnn</span>
</span>
</div>
CSS:
.contener {
width: 300px;
}
.editableLabel {
display: flex;
}
.contentTrimmed {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
The result I want to obtain is the trimmed text if it is longer than 300px.