javascript - how to find text cut off while resizing td element -


i have resize option in table. when resize, cuts off text. how find size @ text begins cut off..

enter image description here

when resize header happensenter image description here

the easiest way multiply length of string point size times 1.25. should give how wide areas should title , not text goes slots.

so strlen(text)*fontpointsize*1.25

also - yo yo has said - need specify width of field. so:

<td width='123px'>title</td> 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -