/ Published in: CSS

Adding ellipsis to an overflowing item.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
li { white-space: nowrap; width: 100%; overflow: hidden; -o-text-overflow: ellipsis; text-overflow: ellipsis; }
URL: http://www.smashingmagazine.com/2010/03/01/css-and-the-future-of-text/
Comments
