28

In this page there are some links at the left sidebar that get cropped with:

.widget-area .textwidget li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

In Firefox/Chrome it's displayed properly: Screenshot from Firefox/Chrome

Unfortunately Internet Explorer 8/9/10...: Screenshot from IE 10

The problem isn't IE 10 support for text-overflow:ellipsis.. for example this works on IE 10 too! What's wrong with my implementation? I also tried to add -ms-text-overflow:ellipsis, without any luck.

Michael Kohne
  • 11,888
  • 3
  • 47
  • 79
MultiformeIngegno
  • 6,959
  • 15
  • 60
  • 119

3 Answers3

39

Removing the word-wrap: break-word property should help.

duri
  • 14,991
  • 3
  • 44
  • 49
  • 8
    As that wasn't in the CSS above or in my css, this was mildly confusing. Adding "word-wrap: normal" does seem to fix it though. – Kevin Oct 14 '13 at 23:39
  • This makes no sense to me, but it is the correct answer. Thank you duri. – Mr Griever Oct 23 '13 at 19:30
  • 11
    Note: IE11 (and probably below) will not work with this if there are `
    ` in front of the text!
    – Sliq Jan 16 '14 at 17:10
2

add width property to your CSS code..this would help..

asifsid88
  • 4,631
  • 20
  • 30
1

For IE you should add some extra code..like changing ur width property..or try using a dotdotdot jquery plugin..that would be an alternate solution.. Like this

http://dotdotdot.frebsite.nl

Edit: Follow this link

Quirksmode textoverflow

which tells you to set the width:100% for IE..

Hash
  • 7,726
  • 9
  • 34
  • 53
Lucky
  • 16,787
  • 19
  • 117
  • 151
  • 1
    A nice solution is using jQuery for this little thing? Naah. It should be an easy fix, like moving the 3 CSS declarations to the container.. something like that! I Googled but I can't seem to find anything interesting. – MultiformeIngegno Feb 02 '13 at 17:11
  • Nice solution since its cross browser implementation..and for good presentation..the simplest solution is not always the best one.. – Lucky Feb 02 '13 at 17:18
  • try run this in ie jsfiddle.net/HerrSerker/kaJ3L/1/ – Lucky Feb 02 '13 at 18:24