Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

array question with pipe bar

More
7 years 9 months ago #161457 by RitaShen
if I do this in array question, and use pipe bar (|) in the sub-question.
how can I adjust the blank place (the red block) that the text can close to the center


thanks

Rita
The topic has been locked.
More
7 years 9 months ago #161479 by RitaShen
sorry, I just found that I have ask my question in the wrong classification:(
The topic has been locked.
  • StuartJKondziella
  • StuartJKondziella's Avatar
  • New Member
  • New Member
More
7 years 9 months ago #161495 by StuartJKondziella
Replied by StuartJKondziella on topic array question with pipe bar
Hi RitaShen,

no worries, I moved your topic to the Design issues thread. ;)


Not sure how you've structured your question by looking at the screenshot.

However, if you're merely trying to change the gaps, try editing your array question by going to Advanced Settings > Display >

(Sub-)question width

-> there, you ought to change it by testing different values in percent, e.g. 75%.
The topic has been locked.
More
7 years 9 months ago #161499 by jelo
Replied by jelo on topic array question with pipe bar

StuartJKondziella wrote: However, if you're merely trying to change the gaps, try editing your array question by going to Advanced Settings > Display > (Sub-)question width

I wonder how that would narrow the gaps when using the pipe to split the text items on both sides. The sub-question width seems to have no impact on both sides.
Did you get a different result?

10%

30%


Looks to me like you will have to work on the CSS-level to get some change.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
  • StuartJKondziella
  • StuartJKondziella's Avatar
  • New Member
  • New Member
More
7 years 9 months ago #161502 by StuartJKondziella
Replied by StuartJKondziella on topic array question with pipe bar
You're right. Was the first thing that came to mind, but will likely require a workaround script to change the column widths.
The topic has been locked.
More
7 years 9 months ago #161504 by holch
Replied by holch on topic array question with pipe bar
I am wondering if this will even work for what RitaShen is trying to do.

Usually for arrays you need one answer per line. As there is only 1 answer per line in her example, it can only work if the question is not mandatory.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
7 years 8 months ago #161546 by tpartner
I'm also not sure how this question type would work because, even if non-mandatory, there is no way to un-check a radio.

Having said that if you want to center the labels, you can do something like this...

1) Assign an answer width of 80 (this width gets split between the left and right labels in a semantic differential)

2) Assign a CSS class something like "centered-labels"

3) Add something like this to the end of template.css:

Code:
.centered-labels th.answertext {
  text-align: right;
}
 
.centered-labels th.answertextright {
  text-align: left;
}


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
7 years 8 months ago - 7 years 8 months ago #161547 by tpartner
I'm also not sure how this question type would work because, even if non-mandatory, there is no way to un-check a radio.

Having said that, if you want to center the labels, you can do something like this...

1) Assign an answer width of 80 (this width gets split between the left and right labels in a semantic differential)

2) Assign a CSS class something like "centered-labels"

3) Add something like this to the end of template.css:

Code:
.centered-labels th.answertext {
  text-align: right;
}
 
.centered-labels th.answertextright {
  text-align: left;
}


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 7 years 8 months ago by tpartner.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose