On Tue, 2008-07-01 at 13:26 -0700, Brian Dunning wrote:
> I have a web page that lists "most recent comments" in a left margin.  
> Sometimes people post long URLs, or even just really really long  
> words, that force that margin to display way too wide, screwing up the  
> page layout. Is there a way to make sure URLs or other text in a  
> string gets split up so this doesn't happen?
> 
> If there's a CSS solution that's better than a PHP solution I'll take  
> that too.   :-)

You need to manually chop them. The wordwrap() function should be able
to do it for you. Although, you'll have issues with HTML if I recall
correctly. CSS will not do it for you unless you want to have overflow
and either hide the overflow or have scrollbars appear.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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

Reply via email to