Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

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

Change of column width for question "array (flexible labels) by column" 5 years 5 months ago #57032

  • oli_8
  • oli_8's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hi,
how can I change the column width for questions of the type: array (flexible labels) by column
Thanks and kind regards,
Oli
The administrator has disabled public write access.

Change of column width for question "array (flexible labels) by column" 5 years 5 months ago #57040

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6139
  • Thank you received: 1363
  • Karma: 535
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.
The administrator has disabled public write access.

Aw: Re: Change of column width for question "array (flexible labels) by column" 5 years 5 months ago #57058

  • oli_8
  • oli_8's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Thanks, it solved my problem!
oli
The administrator has disabled public write access.

Change of column width for question "array (flexible labels) by column" 5 years 3 months ago #59155

  • cheer30
  • cheer30's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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?
The administrator has disabled public write access.

Change of column width for question "array (flexible labels) by column" 5 years 3 months ago #59158

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9293
  • Thank you received: 1327
  • Karma: 384
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Change of column width for question "array (flexible labels) by column" 5 years 3 months ago #59159

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6139
  • Thank you received: 1363
  • Karma: 535
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.
The administrator has disabled public write access.

Change of column width for question "array (flexible labels) by column" 5 years 3 months ago #59162

  • cheer30
  • cheer30's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
Thank you. I knew it had to be something close to this!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.576 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form