From df26dd34fd067f49f92186b3105eecfda64f6040 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 5 Jan 2007 11:51:43 +0000 Subject: [PATCH] The fixes I meant to make with print_simple box doh! MDL-7861 MDL-4943 --- lib/weblib.php | 11 +++++------ theme/standard/styles_layout.css | 5 +++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index cd21ca38f3..d558de5030 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2924,23 +2924,22 @@ function print_simple_box_start($align='', $width='', $color='', $padding=5, $cl $output = ''; - $tableclasses = $class; + $divclasses = $class.' '.$class.'content'; if ($align) { - $tableclasses .= ' boxalign'.$align; // Implement alignment using a class + $divclasses .= ' boxalign'.$align; // Implement alignment using a class } if ($width) { $width = ' style="width:'.$width.'"'; } if ($id) { - $id = 'id="'.$id.'"'; + $id = ' id="'.$id.'"'; } if ($color) { $color = ' style="background:'.$color.'"'; } - $output .= ''. - ''; + $output .= ''; if ($return) { return $output; @@ -2953,7 +2952,7 @@ function print_simple_box_start($align='', $width='', $color='', $padding=5, $cl * Print the end portion of a standard themed box. */ function print_simple_box_end($return=false) { - $output = ''; + $output = ''; if ($return) { return $output; } else { diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 42e45a0b0a..469b51839f 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -141,6 +141,11 @@ img.grouppicture, .generalbox#intro { } +.boxaligncenter { + margin-left:auto; + margin-right:auto; +} + .noticebox { border-width:1px; border-style:solid; -- 2.39.5