diff --git a/calendar/event.php b/calendar/event.php
index 27d015f777f..04e7d7e7f15 100644
--- a/calendar/event.php
+++ b/calendar/event.php
@@ -512,13 +512,13 @@
echo calendar_filter_controls('event', 'action='.$action.'&type='.$eventtype.'&id='.$eventid);
echo '';
- echo '
';
+ echo '
';
echo calendar_top_controls('display', array('m' => $prevmon, 'y' => $prevyr));
echo calendar_get_mini($courses, $groups, $users, $prevmon, $prevyr);
- echo '
';
+ echo '
';
echo calendar_top_controls('display', array('m' => $mon, 'y' => $yr));
echo calendar_get_mini($courses, $groups, $users, $mon, $yr);
- echo '
';
+ echo '
';
echo calendar_top_controls('display', array('m' => $nextmon, 'y' => $nextyr));
echo calendar_get_mini($courses, $groups, $users, $nextmon, $nextyr);
echo '
';
diff --git a/calendar/view.php b/calendar/view.php
index b05e3ac318f..9841084281c 100644
--- a/calendar/view.php
+++ b/calendar/view.php
@@ -163,13 +163,13 @@
echo calendar_filter_controls($view, $getvars);
echo '
';
- echo '';
+ echo '
';
echo calendar_top_controls('display', array('m' => $prevmon, 'y' => $prevyr));
echo calendar_get_mini($courses, $groups, $users, $prevmon, $prevyr);
- echo '
';
+ echo '
';
echo calendar_top_controls('display', array('m' => $mon, 'y' => $yr));
echo calendar_get_mini($courses, $groups, $users, $mon, $yr);
- echo '
';
+ echo '
';
echo calendar_top_controls('display', array('m' => $nextmon, 'y' => $nextyr));
echo calendar_get_mini($courses, $groups, $users, $nextmon, $nextyr);
echo '
';
diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css
index ee2d9e7e29e..6887b9dfa6a 100644
--- a/theme/standard/styles_layout.css
+++ b/theme/standard/styles_layout.css
@@ -499,9 +499,13 @@ table.minicalendar td {
margin-top: 4px;
}
+.minicalendarblock {
+ padding: 0px 4px;
+}
+
table.minicalendar {
width: 100%;
- margin: 10px 4px;
+ margin: 10px auto;
padding:2px;
border-width:1px;
border-style:solid;