Posted by "Mark Rees" on 08/24/05 18:00
""Jay Blanchard"" <jay.blanchard@niicommunications.com> wrote in message
news:C8F323573C030A448F3E5A2B6FE2070B08EB983D@nemesis...
[snip]
doesn't work CSS acts the same way with a long unbroken string.
[/snip]
Well, you have no way of determining how many pixels wide something can
be with PHP. You might have to use JavaScript to break up the string as
the table is rendered.
Just a thought, and probably not very relevant to the OP: can you use a
fixed width font, specify the size with CSS and then work out the width?
I've done something similar with ASP to determine the size of pop-up
windows, but it was a big pain in the backside although it kind of works
(good enough for a hobby site anyway).
[Back to original message]
|