Jump to content
xisto Community
afoongwl215

Checking For Word Wrap In Table Column

Recommended Posts

Hi, i have this problem currently. Take for instance i have <table width=20>text text</table>

text text
This will display fine whereas <table width=20>text text text text text text text text</table>
text text text text
text text text textt
Will cause it to wrap to the next line. What im doing currently us using javascript to detect he length of the text and appending a <marquee> tag before those that have exceeded the required length. However, i realize that other things plays a part in determining if the word is wrapped for instance capital letter size is different from normal letters. Is there a way for me to determine if a table column has been word warped using javascript?

Share this post


Link to post
Share on other sites

I don't know much about your problem or javascript, but it might be caused by quirks mode. A table element must contain table row and table cell elements by the W3 standards. So put in <tr> and <td> tags, try again and see if it works.

Share this post


Link to post
Share on other sites

I don't know much about your problem or javascript, but it might be caused by quirks mode. A table element must contain table row and table cell elements by the W3 standards. So put in <tr> and <td> tags, try again and see if it works.


Hi, In my actual implementation all tables have Tr/td tags etc. the actual problem itself is the word wrap. therefore, im asking if there's a way to detect if an element is has been wordwraped.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.