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

Left-align quiz: Difference between revisions

From MoodleDocs
(scrapbook nav)
m (template move)
Line 1: Line 1:
{{Scrapbook}}
Questions and answers are right-aligned in the quiz module. This layout is currently hard-coded in the php files.
Questions and answers are right-aligned in the quiz module. This layout is currently hard-coded in the php files.


Line 21: Line 23:
* [http://moodle.org/mod/forum/discuss.php?d=30573#150195| Changing Quiz Appearance] forum discussion
* [http://moodle.org/mod/forum/discuss.php?d=30573#150195| Changing Quiz Appearance] forum discussion


{{Scrapbook}}
[[Category:Administrator]]
[[Category:Administrator]]
[[Category:Developer]]
[[Category:Developer]]
[[Category:Themes]]
[[Category:Themes]]

Revision as of 09:46, 25 February 2006

Questions and answers are right-aligned in the quiz module. This layout is currently 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.

.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