javascript - Stop text from over running it container -
ive got container of message gets echoed, message self has no fixed size, user generated, can happen though if string of text long submitted can on flow container break design..
is there way (hopefully css, although js ok) make box crop text , leave ...
can place link text on page.
you can stop happening using overflow:hidden
, more elegenat approach rather cutting straight off. seem remeber reading somthing css3, life of me cant figure out called.
ive made jsfiddle of problem here - http://jsfiddle.net/6fk7b/
css property text-overflow:ellipsis
, though browser support varies
https://developer.mozilla.org/en-us/docs/web/css/text-overflow
Comments
Post a Comment