Re: php solution to html problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



""Jay Blanchard"" <jay.blanchard@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C8F323573C030A448F3E5A2B6FE2070B08EB983D@xxxxxxxxxx
[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).

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux