I will try to explain myself as best I can because I really don't want to have to copy all the code over (there is a lot). I have a span which is getting text from an AngularJS binding (not important to this question) and I am setting four style parameters to this span:
- A width: 100px
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
I am doing this based on the following W3Schools page: http://www.w3schools.com/cssref/tryit.asp?filename=trycss3_text-overflow
I want the text to be clipped at 100px and ellipsis added to the end of it. Here is a screenshot of what is going wrong:
