Have a text to output in div printed with not fixed-pitch font. This div height permit to print only 4 lines of text. Is it possible to track automatic browser word wrap, so I can find position in text, when it has reached 4 lines and to cut away next lines?
Any suggestions using Javascript manipulating with DOM or maybe text line length calculation with PHP help?
Have a text to output in div printed with not fixed-pitch font. This div
Share
How about using
overflow: hidden?Say you had a
font-sizeof 12px, and aline-heightof 16px.Is this what you’re after?