Re: How to cope with too long words which make the table to wide?

From: Date: Tue, 09 Apr 2002 12:54:06 +0000
Subject: Re: How to cope with too long words which make the table to wide?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92221@lists.php.net to get a copy of this message
At 09.04.2002 14:15, you wrote:
Hi there, I am wondering what to do with a word that is to long for a table field. What I have is an application, where users can upload pics and give a caption. so if the caption contains to long words like aaaaaaaaaaaaaaaaaaaaaaaaaaa the whole site looks mixed up, because the table get to wide. Thanx for any idea Andy Two methods
1st cut the string using substr($var,0, 'max_length'); 2nd you define your table with fixed values like width="500" the columns should be filled wit empty gifs height="1" width="x" until the sum of 500 is reached,. Then put your text in and there should be a line break. (FYI This method is not recommended by w3c) HTH Oliver

« previous php.general (#92221) next »