Left-align quiz: Difference between revisions
From MoodleDocs
Urs Hunkler (talk | contribs) m (→Solution) |
Urs Hunkler (talk | contribs) m (→Solution) |
||
Line 12: | Line 12: | ||
or | or | ||
B) Add the following CSS properties to the CSS file "styles_layout.css" of your theme into the section " *** Modules:Quizz". | B) Add the following CSS properties to the CSS file "styles_layout.css" of your theme <br /> into the section " *** Modules:Quizz". | ||
<pre> | <pre> |
Revision as of 11:16, 10 November 2005
Quiz Questions and Answers
Introduction
In the quiz module questions and answers are right aligned. This layout is hard coded in the php files.
Task
Display the questions and answers left aligned.
Solution
A) Change the php files as proposed by Harry Smith in the Moodle forum in the discussion "Changing Quiz Appearance"
or
B) Add the following CSS properties to the CSS file "styles_layout.css" of your theme
into the section " *** Modules:Quizz".
.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 }