Posted By

thnkling on 03/01/10


Tagged

css overflow ellipsis


Versions (?)

Adding an ellipsis to an overflowing item.


 / Published in: CSS
 

URL: http://www.smashingmagazine.com/2010/03/01/css-and-the-future-of-text/

Adding ellipsis to an overflowing item.

  1. li {
  2. white-space: nowrap;
  3. width: 100%;
  4. overflow: hidden;
  5. -o-text-overflow: ellipsis;
  6. text-overflow: ellipsis;
  7. }

Report this snippet  

You need to login to post a comment.