javascript - Displaying as much text as possible within a fixed height -
is there algorithmic way in php (if not, in js) : « in div x, display text possible string y not go beyond height z » ?
why don't use css? set font size on static text (lorem ipsum), , set overflow of div x hidden. once done, remove test text , fill div x dynamically. if haven't understood question, please correct me :)
Comments
Post a Comment