Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Left-align quiz: Difference between revisions

From MoodleDocs
(Created page with "{{Scrapbook}} 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 '''le...")
 
No edit summary
 
Line 1: Line 1:
{{Scrapbook}}
{{obsolete}}{{Scrapbook}}
 
In Moodle 1.5 questions and answers were right-aligned in the quiz module. This layout was 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.


Line 21: Line 22:


* [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
[[Category:Themes]]

Latest revision as of 12:13, 10 November 2013

Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.

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