Check out the LimeSurvey source code on GitHub!

Change of column width for question "array (flexible labels) by column"

More
5 years 11 months ago #57032 by oli_8
Hi,
how can I change the column width for questions of the type: array (flexible labels) by column
Thanks and kind regards,
Oli

Please Log in to join the conversation.

More
5 years 11 months ago #57040 by tpartner
You will need to use CSS to do this.

Add something like the following to the end of template.css. Replace "11" with your question ID .

The first rule affects the first column and the second rule affects the other columns.
#question11 col.col-answers {
	width: 20% !important;
}
 
#question11 col.odd,
#question11 col.even {
	width: 16% !important;
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
5 years 11 months ago #57058 by oli_8
Thanks, it solved my problem!
oli

Please Log in to join the conversation.

More
5 years 9 months ago #59155 by cheer30
What code do I use if I want to do all array flexible questions the same way? Will I have to enter all 85 question numbers?

Please Log in to join the conversation.

More
5 years 9 months ago #59158 by DenisChenu
According to the documentation:

you can use .array-flexible-column .

But i'm not sure documentation are actulized with new question type. Al question have one specific class :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 9 months ago #59159 by tpartner

But i'm not sure documentation are actulized with new question type.

Yup, the class for the "Array" question type in 1.90 is still "array-flexible-row".

So:
.array-flexible-row col.col-answers {
	width: 20% !important;
}
 
.array-flexible-row col.odd,
.array-flexible-row col.even {
	width: 16% !important;
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
5 years 9 months ago #59162 by cheer30
Thank you. I knew it had to be something close to this!

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form