RE: [PHP] Splitting up long URLs
| From: | Boyd, Todd M. | Date: | Tue, 01 Jul 2008 20:45:53 +0000 |
| Subject: | RE: [PHP] Splitting up long URLs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276194@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Brian Dunning [mailto:brian@briandunning.com]
> Sent: Tuesday, July 01, 2008 3:27 PM
> To: php-general@lists.php.net
> Subject: [PHP] Splitting up long URLs
>
> 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. :-)
STFW: http://www.w3.org/TR/css3-text/#white-space
...doesn't say much in the article about whether or not it will break up
"words" rather than lines, but it's worth a shot.
Todd Boyd
Web Programmer