Left-align quiz: Difference between revisions
From MoodleDocs
(Applies to Moodle 1.5 only) |
Helen Foster (talk | contribs) m (version template removal) |
||
Line 1: | Line 1: | ||
{{Scrapbook}} | {{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 24: | 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]] | [[Category:Themes]] |
Revision as of 11:07, 22 June 2007
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
- Changing Quiz Appearance forum discussion