Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Left-align quiz.

Left-align quiz: Difference between revisions

From MoodleDocs
m (template move)
(Applies to Moodle 1.5 only)
Line 1: Line 1:
{{Scrapbook}}
{{Scrapbook}}
{{Moodle 1.5}}


Questions and answers are right-aligned in the quiz module. This layout is currently hard-coded in the php files.
In Moodle 1.5 questions and answers were right-aligned in the quiz module. This layout was hard-coded in the php files.


To display quiz questions and answers '''left-aligned''', add the following CSS properties to the CSS file ''styles_layout.css'' of your theme into the section ''*** Modules:Quiz''.
To display quiz questions and answers '''left-aligned''' in Moodle 1.5, add the following CSS properties to the CSS file ''styles_layout.css'' of your theme into the section ''*** Modules:Quiz''.


<pre>
<pre>

Revision as of 11:08, 26 March 2006

Template:Moodle 1.5

In Moodle 1.5 questions and answers were right-aligned in the quiz module. This layout was hard-coded in the php files.

To display quiz questions and answers left-aligned in Moodle 1.5, add the following CSS properties to the CSS file styles_layout.css of your theme into the section *** Modules:Quiz.

.mod-quiz .generalbox .generalboxcontent {
  text-align:left !important
}
.mod-quiz .generalboxcontent table[align=right],
.mod-quiz .generalboxcontent p[align=right] {
  float:left
}
* html .mod-quiz .generalboxcontent table,
* html .mod-quiz .generalboxcontent p {
  float:left
}

See also