diff --git a/grade/report/grader/index.php b/grade/report/grader/index.php
index f4ac9be4131..8a081bdb9d0 100644
--- a/grade/report/grader/index.php
+++ b/grade/report/grader/index.php
@@ -60,9 +60,8 @@ include('tabs.php');
echo $report->group_selector;
echo $report->get_toggles_html();
print_paging_bar($numusers, $report->page, $report->get_pref('studentsperpage'), $report->pbarurl);
-echo '
';
-$reporthtml = '
';
+$reporthtml = '';
$reporthtml .= $report->get_headerhtml();
$reporthtml .= $report->get_scalehtml();
$reporthtml .= $report->get_studentshtml();
diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css
index d9573842d2f..988fb03a14f 100644
--- a/theme/standard/styles_layout.css
+++ b/theme/standard/styles_layout.css
@@ -2123,6 +2123,11 @@ body#grade-index .grades .weighted {
margin-left: 20px;
}
+#grade-report table.gradestable {
+ margin-left:auto;
+ margin-right:auto;
+}
+
/* gradebook edit tree */
#grade-edit-edit_tree .gradetreebox {