Menu
In my application, there are table headers where text may overflow. As a result I need to cut the displayed words short so that “abcdefghijklmnopqrstuvwxyz” becomes something like “abced…”.
On top of that, it would be even better if the script can detect the width of the parent DIV and dynamically set the displayed characters before the “…”. This way, there would be more characters allowed if it consists mostly of “iiiiiii” while there’d be less characters shown if it consists mostly of “QQQ”s.
Is there a script that can do this out there? I’m finding it a big pain to do this via PHP code.