Adjust Array Width in Semantic Differential

More
2 years 11 months ago #113864 by flink
flink created the topic: Adjust Array Width in Semantic Differential
Hey everyone,

what I want to do is have a likert scale on the left and the actual items on the right hand side. As a workaround, I thought about making an array type question and using the pipe symbol. For example,

1. | Item text

gives me the item number on the left, the scale in the middle and the item text on the right. Is it possible to adjust the array width for the left and right hand sides separately? Right now, the width is distributed evenly, but I want the left hand side to be narrow and the right hand side to have more space.

Thank you very much!

Please Log in to join the conversation.

More
2 years 11 months ago #113884 by tpartner
tpartner replied the topic: Adjust Array Width in Semantic Differential
You can place something like this in template.css (replace "QQ" with your question ID ).

#questionQQ table.questions-list col {
	width: auto;
}
 
#questionQQ th.answertext,
#questionQQ th.answertextright {
	width: 200px;
}

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
2 years 11 months ago #113899 by flink
flink replied the topic: Adjust Array Width in Semantic Differential
Hi tpartner, thank you for your answer. Unfortunately, the code does not work. In fact, nothing changes.
I am using Version 1.92+ Build 120919, if that is important.

Please Log in to join the conversation.

More
2 years 11 months ago #113903 by tpartner
tpartner replied the topic: Adjust Array Width in Semantic Differential
Can you activate a test survey for us to see?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
2 years 11 months ago #113904 by flink
flink replied the topic: Adjust Array Width in Semantic Differential
sure!

dgp-ls.de/limesurvey/index.php?sid=37841&lang=de

like this, or do you need to access the survey backend?

Please Log in to join the conversation.

More
2 years 11 months ago #113911 by tpartner
tpartner replied the topic: Adjust Array Width in Semantic Differential
Try this:

#question14631 table.question col {
	width: auto;
}
 
#question14631 th.answertext,
#question14631 th.answertextright {
	width: 200px;
}

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: flink

Please Log in to join the conversation.

More
2 years 11 months ago #113912 by flink
flink replied the topic: Adjust Array Width in Semantic Differential
Got it to work, thank you very much!

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now