Skip to content

Commit

Permalink
Removed valign attribute from <table> tag for XHTML compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jan 13, 2005
1 parent eed11c8 commit 5aeaeb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/weblib.php
Expand Up @@ -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] = '';
Expand Down

0 comments on commit 5aeaeb5

Please sign in to comment.