Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Help with Array Question sizing

Help with Array Question sizing 5 years 2 weeks ago #69535

  • neil_m
  • neil_m's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hi Guys

When i have two array questions, the size of the array is changed by the length of the questions, and each array ends up with very different sizing.

I haven't worked out how to use CSS ot manipulate the question yet, only the surrounding text.

Can anyone tell me how i could change my survey from the first picture (what it does now) to the second picture (a mockup of what is desired.

I would like to a) set a fixed width on the table or b) set a fixed width on the question column and set a separate fixed width on the answer columns.
Last Edit: 5 years 2 weeks ago by neil_m.
The administrator has disabled public write access.

Help with Array Question sizing 5 years 2 weeks ago #69540

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9600
  • Thank you received: 1376
  • Karma: 390
Hello,

it depends of your template.

You can try:
table.question {width:99%} at end of your template.css file.

Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
Last Edit: 5 years 2 weeks ago by DenisChenu. Reason: typo
The administrator has disabled public write access.

Help with Array Question sizing 5 years 2 weeks ago #69544

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
Can you post a link to a test survey so we can have a look at the problem live?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.

Help with Array Question sizing 5 years 2 weeks ago #69595

  • neil_m
  • neil_m's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Thanks Shnoulle, i will try that.

Mazi, you should be able to access my test survey here: survey.redinkhomes.com.au/limesurvey/index.php?sid=71789
The administrator has disabled public write access.

Help with Array Question sizing 5 years 2 weeks ago #69607

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
neil_m wrote:
Mazi, you should be able to access my test survey here: survey.redinkhomes.com.au/limesurvey/index.php?sid=71789
Sorry, but I only get a "
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable." error.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.

Help with Array Question sizing 5 years 1 week ago #70223

  • neil_m
  • neil_m's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Thanks to all who helped.

I used Chrome and inspect element to find the right part of the CSS that needed amending.

I have done something basic and constrained the width of the arrays to 775px by modifying the template.css for my theme, adding the bolded line below.

div.answers table {
margin: 0 auto;
border-collapse: separate;
border-spacing: 1px;
width: 775px;

To be honest, I can't see that a dynamically sized table is good for any theme, it seems to be based entirely on the size of the question. It might be an idea to allow a min / max or total width for the table as a question attribute.
The administrator has disabled public write access.

Help with Array Question sizing 5 years 1 week ago #70263

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
Of course everything is easier when using fixed widths. But if you want to use the same template for e.g. PCs and tablets and smartphones, a dynamic resizing is what you need. Of course it might not looks nice for everyone.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.

Help with Array Question sizing 5 years 1 week ago #70288

  • neil_m
  • neil_m's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
That's a good point.

I just think there has to be some alternative to having every array table a different size.

Thanks anyway
The administrator has disabled public write access.

Help with Array Question sizing 5 years 1 week ago #70300

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
You are right, at a professional template one should work around such cases. Unfiortunately the shipped templates are very old and outdated.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.
Time to create page: 0.237 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form