array question with pipe bar

More
4 months 2 weeks ago #161457 by RitaShen
RitaShen created the topic: array question with pipe bar
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
Attachments:

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #161479 by RitaShen
RitaShen replied the topic: array question with pipe bar
sorry, I just found that I have ask my question in the wrong classification:(

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #161495 by StuartJKondziella
StuartJKondziella replied the 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%.

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #161499 by jelo
jelo replied the 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.
Attachments:

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #161502 by StuartJKondziella
StuartJKondziella replied the 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.

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #161504 by holch
holch replied the 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.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #161546 by tpartner
tpartner replied the topic: array question with pipe bar
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:

.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.
Attachments:

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago - 4 months 2 weeks ago #161547 by tpartner
tpartner replied the topic: array question with pipe bar
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:

.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: 4 months 2 weeks ago by tpartner.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!