Welcome, Guest
Username: Password: Remember me

TOPIC: Help with Array Question sizing

Help with Array Question sizing 2 years 11 months 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: 2 years 11 months ago by neil_m.
The administrator has disabled public write access.

Re: Help with Array Question sizing 2 years 11 months ago #69540

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
Hello,

it depends of your template.

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

Denis
Last Edit: 2 years 11 months ago by DenisChenu. Reason: typo
The administrator has disabled public write access.

Re: Help with Array Question sizing 2 years 11 months ago #69544

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Help with Array Question sizing 2 years 11 months 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.

Re: Help with Array Question sizing 2 years 11 months ago #69607

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Help with Array Question sizing 2 years 10 months 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.

Re: Help with Array Question sizing 2 years 10 months ago #70263

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Help with Array Question sizing 2 years 10 months 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.

Re: Help with Array Question sizing 2 years 10 months ago #70300

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.114 seconds
Donation Image