]> git.mjollnir.org Git - moodle.git/commitdiff
Removed valign attribute from <table> tag for XHTML compatibility
authormoodler <moodler>
Thu, 13 Jan 2005 07:55:24 +0000 (07:55 +0000)
committermoodler <moodler>
Thu, 13 Jan 2005 07:55:24 +0000 (07:55 +0000)
lib/weblib.php

index 0eaf75361d23e1fe3b60fd122c85fbc2db8658a8..963c7855908b10d79bdcd83ec575eec2128a1261 100644 (file)
@@ -2413,11 +2413,11 @@ function make_table($table) {
         $fontsize = '<font size="'. $table->fontsize .'">';
     }
 
-    $output =  '<table width="'. $table->width .'" valign="top" align="'. $table->tablealign .'" ';
+    $output =  '<table width="'. $table->width .'" align="'. $table->tablealign .'" ';
     $output .= ' cellpadding="'. $table->cellpadding .'" cellspacing="'. $table->cellspacing .'" class="'. $table->class .'">'."\n";
 
     if (!empty($table->head)) {
-        $output .= '<tr>';
+        $output .= '<tr valign="top">';
         foreach ($table->head as $key => $heading) {
             if (!isset($size[$key])) {
                 $size[$key] = '';