Checking For Word Wrap In Table Column
Posted
by Sparafusile
on Stack Overflow
See other posts from Stack Overflow
or by Sparafusile
Published on 2010-04-13T16:54:16Z
Indexed on
2010/04/13
18:13 UTC
Read the original article
Hit count: 294
JavaScript
|html
I'm writing part of a web page that allows a user to build a table and fill it with information. In the course of building the table, the user will be adding additional columns with headers. I'd like to code it so when the combined width of all the headers causes one of them to wrap that the table columns switch to using vertical text (writing-mode: tb-rl). Is there any way, using JavaScript, to determine if the contents of a specific cell have wrapped?
Thanks, Spara
© Stack Overflow or respective owner