CSS Trick : text-overflow
I’d like to share with a css trick that I recently discovered accidently.
It’s called “text-overflow”. How many times have you created and used a script that truncate overflown statement and add “…” to the end of it?
But IE has css property, text-overflow, and it will make your life lot easier.
Here’s an example:
See how beautifully it truncated!
Note: you should be using <nobr> in order for text-overflow to work.





