Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

CSS can do that with the "text-overflow: ellipsis" property, but only for fixed-width elements, so it wouldn't really work for links.[1]

Note that if you click the timestamp on the comment, links don't get shortened.

[1] https://css-tricks.com/snippets/css/truncate-string-with-ell...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: