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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -