diff --git a/mod/quiz/renderer.php b/mod/quiz/renderer.php index 80202e2d9f4..4d7cc9b8a85 100644 --- a/mod/quiz/renderer.php +++ b/mod/quiz/renderer.php @@ -302,7 +302,11 @@ class mod_quiz_renderer extends plugin_renderer_base { $output = ''; $userpicture = $panel->user_picture(); if ($userpicture) { - $output .= html_writer::tag('div', $this->render($userpicture), + $fullname = fullname($userpicture->user); + if ($userpicture->size === true) { + $fullname = html_writer::div($fullname); + } + $output .= html_writer::tag('div', $this->render($userpicture) . $fullname, array('id' => 'user-picture', 'class' => 'clearfix')); } $output .= $panel->render_before_button_bits($this); diff --git a/mod/quiz/styles.css b/mod/quiz/styles.css index 54a09145213..428203c0e2d 100644 --- a/mod/quiz/styles.css +++ b/mod/quiz/styles.css @@ -57,7 +57,7 @@ body.jsenabled .questionflagcheckbox { .path-mod-quiz #user-picture img { width: auto; height: auto; - float: left; + vertical-align: bottom; } .path-mod-quiz .qnbutton {