Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Maxdiff/Best-worst scaling design

More
5 years 10 months ago #190615 by rebekahhall54
Hello,

I am trying to design a best-worst survey using this workaround:

www.limesurvey.org/manual/Workarounds:_Q...mplating#Version_2.5

So far everything is looking good (screenshot shows my current situation) but I am trying to change the column sizes to make the answer option column (middle) bigger.

I have tried following/adapting advice from this forum ( www.limesurvey.org/forum/design-issues/8...mn-width-in-an-array ) but so far have had no luck.

Does anyone know a way I can do this?

Thanks!
The topic has been locked.
More
5 years 10 months ago #190616 by tpartner
Can you attach a survey export file (.lss) containing only that question and your inserted code?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 10 months ago #190617 by rebekahhall54
Attached- this is my first experience with JavaScript so I'm thinking the way I'm attempting to do this is completely wrong!
The topic has been locked.
More
5 years 10 months ago - 5 years 10 months ago #190622 by tpartner
You can adjust the column widths with pure CSS instead of JavaScript.

Something like this in the question source:

Code:
<style type="text/css">
 
  @media only screen and (min-width: 768px) {
 
    #question{QID} col {
      width: auto !important;
    }
 
    #question{QID} table.ls-answers {
      table-layout: auto;
    }
 
    #question{QID} .answer_cell_SQ001,
    #question{QID} .answer_cell_SQ002 {
      width: 20%;
    }
 
    #question{QID} .ls-answers tbody .answertext {
      text-align: center;
    }
  }
</style>



Sample survey attached:

File Attachment:

File Name: limesurvey...1758.lss
File Size:19.9 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 10 months ago by tpartner.
The following user(s) said Thank You: rebekahhall54
The topic has been locked.
More
5 years 10 months ago #190624 by rebekahhall54
That's great, thank you for your help!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose