In this article
You can apply styles to the content of the answer-section at three different levels:
- Style applied to the entire answer section (Example: ‘Answer section Style’).
- Style applied to one or more cells of the answer grid (Example: ‘Answer Input Style’).
- Style applied to a specific input control within an answer grid cell (Example: ‘Open Text Style’).
In addition, styles can be applied to a specific answer, and these will then override (2) above.
Note: As browsers don't support styling in watermark text, HTML styling should not be applied to the labels for "Other" answers.
Styles at different levels can be applied simultaneously. However if the same style-element is specified at several levels, the most specific level will take precedence. For example, if the font size is specified in both ‘Answer section Style’ and ‘Answer Input Style’, the font size specified in the ‘Answer Input Style’ will be used in answer input cells.
Only one style can be applied at a time for level 2. This is because if more than one style was applied, there would be no way for the author to know which style will be used by each style-element, and there would be no way to determine which style would take precedence.
Note: Be aware that this means that a style might not be used even though it has been defined and specified. For example, if ‘Answer Input Style’ and ‘Group Answer Input Style’ are both defined, then ‘Answer Input Style’ will be applied to the regular answer cells and ‘Group Answer Input Style’ will be applied to the group answer cells. If font only is specified in ‘Answer Input Style’ it will not be applied to the group answer cells.
When the cell style to be used is evaluated, the following evaluation applies:
- If a background color or width for a specific answer is specified, this will have the highest priority. Note also that this will not affect styles in general, and can be applied at the same time as other styles.
- A style specified for an answer has the highest rank among the styles. Note that a style specified for a particular answer will apply BOTH for the label and for the input-part of the answer.
- If no style is specified for the specific answer then ‘Group Header Label Style’, ‘Group Answer Label Style’, Right Answer Label Style’ and ‘Group Header Input Style’ are next in rank.
- Next are ‘Alternating Answer Input Style’ and ‘Alternating Answer Label Style’.
- Then ‘Answer Input Style’ and ‘Answer Label Style’.
- And finally (only for Grid and 3DGrid) are ‘Grid Table Cell Style’.