Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: MaxDiff question type alignment

Re: MaxDiff question type alignment 2 years 5 months ago #79675

  • ricardo
  • ricardo's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 116
  • Thank you received: 1
  • Karma: 0
Dear Tony, Thanks for looking into this.

The width of outer columns has been fixed... but now the blocks are aligned to the left (see pic). Does this have to do with the width of the statements in the column in the middle?. Can something be done with your new script so all the blocks are justified, regardless of length of statements?

This is the link to the active survey

nciia.org/surveys/l19/index.php?sid=85459&lang=en

Cheers,

ricardo
The administrator has disabled public write access.

Re: MaxDiff question type alignment 2 years 5 months ago #79695

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4210
  • Thank you received: 792
  • Karma: 360
Add the following to the end of template.css:
.array-flexible-column table.question {
    width: 100%;
}
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: MaxDiff question type alignment 2 years 5 months ago #79702

  • ricardo
  • ricardo's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 116
  • Thank you received: 1
  • Karma: 0
Dear Tony, thank you very much. The survey is looking fantastic. There's one last minor issue...The header in the right column appears over a green background. How can I put that background on the left header?


maxdiff.JPG
The administrator has disabled public write access.

Re: MaxDiff question type alignment 2 years 5 months ago #79715

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4210
  • Thank you received: 792
  • Karma: 360
1) Remove this line from the script:
$('#question'+qID+' table.question col.odd').css({ 'background-color':'transparent' });

2) Add this to the end of template.css:
.array-flexible-column col.odd, 
.array-flexible-column col.even {
    background-color: #CBEFF2 !important;
}
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: ricardo

Re: MaxDiff question type alignment 2 years 5 months ago #79751

  • ricardo
  • ricardo's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 116
  • Thank you received: 1
  • Karma: 0
Tony...thanks for your help...the survey is looking great.

Cheers

rg
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.177 seconds
Donation Image