I have a div wrapper to wrap some text which I want to ellipse out when it exceeds the wrapper width. Below is my HTML and CSS it works perfectly fine in chrome. Any one explain whats going wrong with IE10.
HTML
<div id="wrapper">
<div class="my-title">Lorem, Ipsum
<br>Our TYPE
<br>Confirmed
<br>simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s
</div>
</div>
CSS
.my-title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: normal;
width: 100%;
}
#wrapper {
width: 500px
}
PLUNKER LINK
tags is cause - even IE11 can't display it propely, BUT, if you remove line breaks - it works. :) (not sure about IE10, though) – sinisake Aug 26 '15 at 21:28
element. – Prashanth Aug 26 '15 at 21:45
`. What's not clear? Is there something I'm missing? So it's a duplicate of http://stackoverflow.com/questions/14664195/text-overflowellipsis-doesnt-work-on-ie?lq=1 (since basically it's about the same issues in IE) – Roko C. Buljan Aug 26 '15 at 21:48
is to add text in next line. If ever any line exceeds the wrapper width it needs to add ellipsis. I have also tried to create div for each individual line which didn't work. – Prashanth Aug 26 '15 at 21:53
` it'll **not work in IE**? – Roko C. Buljan Aug 26 '15 at 21:54
to separate div's unfortunately it didn't work. As far as JS haven't thought of going there before giving up on a CSS solution. – Prashanth Aug 26 '15 at 22:11