basta mettere la larghezza fissa alla cella che contiene il messaggio..
se poi il problema lo hai in presenza di parole molto lunghe [sequenze di caratteri senza spazio] devi implementare una qualche funzione per il wordwrapping.. ad esempio questa:
Codice PHP:
function mywordwrap($stringa,$cols=60,$cut="
")
{
$tag = 0;
for ($i = 0; $i < strlen($stringa); $i++)
{
if ($stringa['$i'] == '<')
$tag++;
elseif ($stringa['$i'] == '>')
$tag--;
elseif ((!$tag) && ($stringa['$i'] ==" "))
$wordlen = 0;
elseif (!$tag)
$wordlen++;
if ((!$tag) && ($wordlen) && (!($wordlen % $cols)))
$chr .= $cut;
$result .= $chr;
}
return $result;
}