The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

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

Change of column width for question "array (flexible labels) by column" 2 years 3 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" 2 years 3 months ago #57040

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2853
  • Thank you received: 423
  • Karma: 243
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

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" 2 years 3 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" 2 years 1 month 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" 2 years 1 month ago #59158

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 4374
  • Thank you received: 451
  • Karma: 165
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" 2 years 1 month ago #59159

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2853
  • Thank you received: 423
  • Karma: 243
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

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" 2 years 1 month 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.
  • Page:
  • 1
Moderators: DenisChenu, ITEd
Time to create page: 0.270 seconds
Donation Image