The final appearance of your survey depends on the chosen layout (graphic design). In the section layout you can adjust color, font, font size, available width etc.. You can adjust the layout in the menu item Questionnaire Layout.
SoSci Survey contents a set of layout templates at choice. You can also create your own layout (e.g. in line with the company CI or the university homepage) – indeed you will need some basic knowledge in web design (HTML,CSS) for this.
option('layout', ...) for this purpose. There is a layout template “SoSci Stimulus Presenter” to present a stimulus without all the surrounding questionnaire stuff.In the Menu item Questionnaire Layout you can find some Layout Templates. You have to click Activate at the desired layout to use it. Afterwards the layout will be listed above and you are able to change it as the case may be.
If you haven't created or activated a layout yet, SoSci Survey will use a plain, decent layout in blue and white with a width of 600 pixels. If you want to adapt color or width of the standard layout, you have to copy the standard layout:
To edit the default layout or an other layout you have to click on the edit button (
) in the list of active layouts (at the very top of Questionnaire Layout).
serif or sans-serif, see CSS font-family Property).Besides the colors, the questionnaire width, and the font (all adjustable in the first tab of the layout), there are a number of popular setting options in the layout:
| Function | Tab | Name of the option |
|---|---|---|
| Larger checkboxes or checkboxes with a different appearance (selection questions and scales) | General Settings | Checkboxes → Input button style Note: If an option is marked with “non-differentiated”, checkboxes for single choice (usually round) and multiple choice (usually square) look the same. |
| Font/font size of scale labels | Questionnaire Elements | Main Elements → Verbal scale anchor |
| Height/spacing of options | Questionnaire Elements | Spacing → Spacing between options |
| Align input fields of scales at the top/middle (only for scales with labeled interim values) | Questionnaire Elements | Vertical Alignment for Items → Scale |
| Always highlight the residual option “don't know” in italics | Questionnaire Elements | Other Elements → Residual option (e.g., font-style:italic) |
Almost every single element of the questionnaire can be adapted individually in the different tabs of the layout. Beyond colors basic knowledge of CSS (CSS Reference) could be helpful.
To access the centrally predefined colors in the CSS- style definitions the variables %color.1% to %color.8% are available. The numeration simply results from the chronological order of the colors in the color scheme tab. %color.2% for example stands for the warning color defined in the color scheme.
The underlying HTML code for the layout can be adjusted or totally regenerated in the HTML template tab. In this respect, the following factors should be taken into consideration:
<head> you should place the placeholder %head% or HTML-compliant <link type="placeholder" href="head"> – SoSci Survey will integrate the CSS code for the layout and other necessary codes at this place. <body> the placeholder %questionnaire% has to appear (the content of the respective survey page will be integrated at this place), the placeholders %logo%, %progress%, and %imprint% should likewise be placed in a suitable location.%questionnaire% area.The following placeholders are available for your layout:
| Placeholder | Function |
|---|---|
%questionnaire% | Placeholder for the actually content of your survey |
%imprint% | Placeholder for the imprint defined in the survey project |
%logo% | Placeholder for a logo, which can be adapted in the survey project |
%progress% | Placeholder for the progress bar |
%color.1% to %color.8% | Colors of the color scheme (see above) |
%width%, %width-80% | The baseline width (pixel, px) adjusted for the layout. If there is entered a plus (+) or minus (-) behind the width, the placeholder represents the baseline width plus/less this value. |
%header.image% | File name of an image file, which can be specified as “header image” in the layout. |
%button.next% | Placeholder for the next button. If this placeholder isn't used, the button will be placed at %button.submit% automatically. |
%button.back% | Placeholder for the back button. If this placeholder isn't used, the button will be placed at %button.submit% automatically. |
%button.submit% | Placeholder for next and back buttons. If this placeholder isn't used, the buttons will be placed below the survey automatically. |
%button.break% | Button to interrupt the interview. This button has to be activated separately in the survey settings. If this placeholder isn't used, the button will be placed at %button.control%. |
%button.leave% | Button to cancel and delete the interview. This button has to be activated separately in the survey settings. If this placeholder isn't used, the button will be placed at %button.control%. |
%button.language% | Buttons to change the language settings. These buttons are only available in multilingual surveys and have to be activated separately in the survey settings. If this placeholder isn't used, the buttons will be placed at %button.control%. |
%button.lang% | Single button to change the language. Only available in multilingual surveys, and only if the buttons to change the language have been enabled in the Compose Questionnaire settings. |
%button.screenreader% | Button to leave the accessible screen reader mode if it has been activated. If this placeholder isn't used, the button will be placed at %button.control%. |
%button.control% | Placeholder for the control buttons (see above), if this placeholder isn't used, the buttons will be placed below the survey. |
Tip: While working on the HTML template layout, using the built in Developer Tools in the Browser can be quite useful.
In the HTML Template immediately before the </style> add the following CSS code to mark mandatory questions (“must be answered”) with an asterisk.
/* Mandatory question marker */ span.s2mandatory::after { content: " *"; color: var(--s2color4); }