0

I must be missing something here, but why isn't my text-overflow: ellipses rule working correctly here?

Fiddle: https://jsfiddle.net/sgj9rv5r/

td {
    white-space: nowrap; 
    width: 50px; 
    overflow: hidden;
    text-overflow: ellipsis;
}

<table border="1">
  <tr>
    <td>
      This content should shorten to ellipses after the 50px width has been reached.
    </td>
  </tr>
</table>
noclist
  • 1,659
  • 2
  • 25
  • 66

1 Answers1

0

Using max-width as suggested by Michael Coker solves this problem.

noclist
  • 1,659
  • 2
  • 25
  • 66