Skip to main content
Skip table of contents

Use Case 4. Scale items font size for the Matrix and Rating Scale types of question

Issue

This use case demonstrates how to manage fonts for the scale items of the Rating Scale and Matrixtype of questions.

In the following example scale items font is 8px and is similar for all elements. You can stress on some elements or make the font bigger for all of them.

Solution

If you would like to make the font bigger for the first and last column, add one of the following pieces of code on the survey Edit Layout>CSS page:

.aDivQuestion_Qxxx .H7,.aDivQuestion_Qxxx .H9 {font-size:16px} 

OR

.aDivQId_questionIdentifier .H7,.aDivQId_questionIdentifier .H9 {font-size:16px} 

.aDivQuestion_Q 

and

 .aDivQId_

reference to the particular question;

XXX -

question sequence number;

questionIdentifier

question custom identifier;

.H7 .H9 -

represent the first and the last column in the scale;

font-size: 16px -

increases font size to 16px;

Result

As a result, given question will look as follows:

Depending on the number of columns in your question, the column parameters may change: 

Column parameters for questions with scales

Example:

H7,H8,H9, H12-H21

2 columns: H7-H9
3 columns: H7-H8-H9
4 columns: H7-H12-H13-H9
5 columns: H7-H12-H8-H13-H9
6 columns: H7-H12-H14-H15-H13-H9
7 columns: H7-H12-H14-H8-H15-H13-H9
8 columns: H7-H12-H14-H16-H17-H15-H13-H9
9 columns: H7-H12-H14-H16-H8-H17-H15-H13-H9
10 columns: H7-H12-H14-H16-H18-H19-H17-H15-H13-H9
11 columns: H7-H12-H14-H16-H18-H8-H19-H17-H15-H13-H9
12 columns: H7-H12-H14-H16-H18-H20-H21-H19-H17-H15-H13-H9

For example, if you would like to make all column headers larger, and the scale contains of five columns, you may use the following piece of CSS code:

.aDivQuestion_Qxxx .H7,

.aDivQuestion_Qxxx .H12,

.aDivQuestion_Qxxx .H8,

.aDivQuestion_Qxxx .H13,

.aDivQuestion_Qxxx .H9 {font-size:12px}

 

OR
.aDivQId_questionIdentifier .H7,

.aDivQId_questionIdentifier .H12,

.aDivQId_questionIdentifier .H8,

.aDivQId_questionIdentifier .H13,

.aDivQId_questionIdentifier .H9 {font-size:12px}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.