da musst du dann wohl mit css rumprobieren, ich habe auch einfach die höhe in pixeln angegeben
PHP-Code:
#maintable {
    
width960px;
    
height600px;

da musst du einfach rumprobieren, aber wenn du dann inhalt reinfüllst, der höher ist, als die tabelle, passt sich die tabelle auch an