I have a simple span tag with content that spans multiple lines, and I have figured out how to cap that off at 3 lines, and then follow up with an ellipsis (...)
The problem is, it doesn't work in IE11, and I would like to. Here's my code:
HTML:
<span class="itemLabel">
This is Line 1<br/>
This is Line 2<br/>
This is Line 3<br/>
this is Line 4<br/>
this is Line 5<br/>
</span>
CSS:
.itemLabel{
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
font-size: 11px;
}
Now the content of the span is being populated dynamically, so I have ZERO control of the amount of text that is put into the span, and we have a set width of 180px on an anchor tag that surround this span AND a product image, so I am unable to simply "don't use as many break tags", I'm putting them there as an example that even though there are 5 lines present, the CSS will cut the span off at 3 maximum.
How can I achieve this same display in IE?