niche Posted November 22, 2011 Share Posted November 22, 2011 If I have a div that's 300px by 20px, is there a function that calculates whether a string will display with a line break, given font-size of 21px? If not, I'll have to create some code, but if it's already available, that's even better. Link to comment Share on other sites More sharing options...
ShadowMage Posted November 22, 2011 Share Posted November 22, 2011 None that I'm aware of. I'm not even sure how you would write something like that. Every font has different character widths. Font size only measures the height of the font. Link to comment Share on other sites More sharing options...
niche Posted November 23, 2011 Author Share Posted November 23, 2011 Thanks ShadowMage! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.