Quote:
|
Originally Posted by Writlaus
mrynit, I said in a previous post in this thread that I would rather not use the wordwrap(); function because it makes decisions based on numbers of characters rather than physical lenght in pixels of the formatted string.
|
I don't think there is any standard HTML method to do what you want, and as you mention, you cannot reliably do it server-side, because you have no way of knowing exactly what size and shape font the client will render in. Even without the client substituting a different font, they may be altering the size, and some fonts don't scale quite linearly (not to mention the server is oblivious that such scaling has happened).
So, you're left with two options as I see it. First, you can forget about it, and just let it mess up the tables when it occurs. Second, you can do it server-side, and just accept that in some situations, it will be sub-optimal.