Maybe it’s an easy question, but there seems to be no obvious answer.
I have a table with a fixed layout (cells can’t resize without screwing up the entire layout) and some dynamic text inside some cells. In case the text overflows, the text should shrink to fit inside the cell, instead of being clipped or wrapped.
I actually expected had to be a good CSS solution, but I failed to find any. Do I really have to do this manually using JavaScript?
Any idea? (best solution would be to not put dynamic text inside a fixed layout table, of course, but in this case there’s no way around).
I hate to be the guy that says “you can’t”, but today I’ll have to be that guy. Unfortunately there is no way to dynamically size text based on the length of a text string using only CSS. You’ll certainly have to solve this using JavaScript.