Left-align quiz: Difference between revisions
From MoodleDocs
Helen Foster (talk | contribs) (category change, formatting) |
Helen Foster (talk | contribs) m (LeftalignQuiz moved to Left-align quiz) |
(No difference)
|
Revision as of 18:39, 4 December 2005
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
- Changing Quiz Appearance forum discussion