Questionnaire appearance
Colours and layout
A number of pound instructions control the formatting of several aspects of the questionnaire appearance. Another page of this documentation identifies which aspects of the page are controlled by CSS styles.
All tabular outputs (tables and MEMO questions within questionnaires but also parameter tables in utilities, record dumps in cwNav, two-way crosstabs in cwFreq, etc.) are produced by the same protocol. This protocol uses the pound instructions stored within the questionnaire to format tabular outputs. If the questionnaire script does not contain specific instructions for a particular aspect of the tabular output, CallWeb uses the specific installation defaults stored in the instance configuration directory. If instructions are not found there, defaults apply.
Advanced colours and layout
It is possible to control the formatting of question tables in a finer way by using a CSS style sheet. To access this advanced mode, first activate it with the following pound instruction:
# Styles for tables = yes
With this mode activated, the format of table cells is controlled by a collection of style sheets rather than by the pound instructions listed above. The following image documents which style controls which cell. The lines of style definition under the image indicate the statements used in the style.css file (note that all style names are in uppercase letters).
.ORDINARY_CELL_A, .ORDINARY_CELL_A0, .ORDINARY_CELL_A1 { background: #E4EDF9; } .ORDINARY_CELL_A2 { background: #F9FAFF; } .ORDINARY_CELL_B, .ORDINARY_CELL_B0, .ORDINARY_CELL_B1 { background: #FFFFFF; } .ORDINARY_CELL_B2 { background: #CCCCCC; } .SPECIAL_COLUMN0 { background: #FFFFFF; } .SPECIAL_COLUMN1 { background: #FFFF66; } .SPECIAL_COLUMN2 { background: #CCFF00; } .SPECIAL_LINE_A0 { background: #FFFFFF; } .SPECIAL_LINE_B0 { background: #CCCCCC; } .SPECIAL_CELL1 { background: #FFFFCC; } .SPECIAL_CELL2 { background: #CCFF99; }
Here is how this works: