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
(category change, formatting)
(Replaced content with "{{Moved_to_dev_docs}}")
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Questions and answers are right-aligned in the quiz module. This layout is currently hard-coded in the php files.
{{Moved_to_dev_docs}}
 
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''.
 
<pre>
.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
}
</pre>
 
==See also==
 
* [http://moodle.org/mod/forum/discuss.php?d=30573#150195| Changing Quiz Appearance] forum discussion
 
[[Category:Administrator]]
[[Category:Developer]]
[[Category:Themes]]

Latest revision as of 01:38, 23 June 2011

This development related page is now located in the Dev docs.

See the Left-align quiz page in the Dev docs.