Fit String to Width


/ Published in: JavaScript
Save to your folder(s)

Examine a string and truncate it so that it fits into the required width based on font-size/weight etc

URL: http://stackoverflow.com/questions/282758/truncate-a-string-nicely-to-fit-within-a-given-pixel-width

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.