Check out the LimeSurvey source code on GitHub!

Help with Array Question sizing

More
5 years 3 months ago - 5 years 3 months ago #69535 by neil_m
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 3 months ago by neil_m.

Please Log in to join the conversation.

More
5 years 3 months ago - 5 years 3 months ago #69540 by DenisChenu
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 (or search sondages pro).
Last Edit: 5 years 3 months ago by DenisChenu. Reason: typo

Please Log in to join the conversation.

More
5 years 3 months ago #69544 by Mazi
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'"

Please Log in to join the conversation.

More
5 years 3 months ago #69595 by neil_m
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

Please Log in to join the conversation.

More
5 years 3 months ago #69607 by Mazi

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'"

Please Log in to join the conversation.

More
5 years 2 months ago #70223 by neil_m
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.

Please Log in to join the conversation.

More
5 years 2 months ago #70263 by Mazi
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'"

Please Log in to join the conversation.

More
5 years 2 months ago #70288 by neil_m
That's a good point.

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

Thanks anyway

Please Log in to join the conversation.

More
5 years 2 months ago #70300 by Mazi
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'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form