Welcome, Guest
Username: Password: Remember me

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

Change of column width for question "array (flexible labels) by column" 3 years 9 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.

Re: Change of column width for question "array (flexible labels) by column" 3 years 9 months ago #57040

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4371
  • Thank you received: 829
  • Karma: 381
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Aw: Re: Change of column width for question "array (flexible labels) by column" 3 years 9 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.

Re: Change of column width for question "array (flexible labels) by column" 3 years 7 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.

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

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
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 :)
The administrator has disabled public write access.

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

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4371
  • Thank you received: 829
  • Karma: 381
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Change of column width for question "array (flexible labels) by column" 3 years 7 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.118 seconds
Donation Image