I'm making a table loop in php to display messages stored in a database, it's looping, it's displaying all the correct information, but I can't seem to get it to look any better :/
Heres the website as it looks now, http://madox.freeprohost.com/message.view.php
And here is the code which creates the table :
PHP Code:
print("<table class=\"forTexts\" align=\"center\" width=\"100\" cellpadding=\"3\" cellspacing=\"0\" border=\"1\">");
print(" <tr>");
print(" <td colspan=\"3\" class=\"forTexts\" align=\"center\">$data[username]</td>");
print(" </tr>");
print(" <tr>");
print(" <td width=\"4\"> </td>");
print(" <td width=\"170\">$data[message]</td>");
print(" <td width=\"4\"> </td>");
print(" </tr>");
print("</table>");
print("<br>");
Problems I'm having:
Cannot allocate a .css to the table (changes fonts etc.)
Cannot change the message length ->
When you look at the site, the message is massive and stretches  the table. Is there a way to make part of it drop down to a different line (cuttoff point?) I tried defining the table width with pixels but didn't work.
Thats about it, unless anyone knows another problem.
Thanks,
Lothop
Last edited by lothop; 08-22-2004 at 08:39 PM..
|