Not too goo at formatting stuff like that with HTML but kind of like
$space ="
";
$graphic="+-------------------------------+";
echo "$graphic<br />|$space{$row['fieldname']}$space|<br />$graphic";
then adjust the number of dashes in the $graphic till it looks right or the numer of spaces in $space. Just an idea cause I have never tried something like that even though with a four letter word it worked, but would make a nightmare of trying to make it look right with more or less letters or characters.