Welcome to the LimeSurvey Community Forum

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

Position of the "equals sum" display

  • equilibrium_21
  • equilibrium_21's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 1 week ago #242379 by equilibrium_21
Position of the "equals sum" display was created by equilibrium_21
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.14
Own server or LimeSurvey hosting: Own
Survey theme/template: fruity
==================

In my survey, I use the multiple numerical input question quite a lot with the "equals sum"-validation. As can be seen in the screenshot, I made the input boxes narrower. However, the "remaining" and "total" values are still in the center and the suffix is displayed at the left corner, which altogether looks quite odd. Does anyone know how to change this? Thanks in advance
Attachments:

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 1 week ago #242382 by Joffm
Replied by Joffm on topic Position of the "equals sum" display
I remember there is already a thread about this.
Please, search the forum!
I'm answering from my smartphone; therefore only this short hint.

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 1 week ago #242388 by tpartner
Replied by tpartner on topic Position of the "equals sum" display
Insert some CSS like this in the question source (adjust the max-width rules to match your input widths):

Code:
<style type="text/css" data-author="Tony Partner">
  @media (min-width: 760px) {
 
    #question{QID} .ls-group-dynamic .ls-input-group > div {
      float: left;
      width: 100%;
      max-width: 130px        
    }
  }
 
 
  @media (max-width: 760px) {
 
    #question{QID} .ls-group-dynamic .control-label {
      text-align: left;      
    }
 
    #question{QID} .ls-group-dynamic > div > div {
      float: left;
      width: 100%;
      max-width: 130px        
    }
  }
</style>

Desktop:

 

Mobile:

 

Sample survey attached:  

File Attachment:

File Name: limesurvey...4-13.lss
File Size:32 KB


If you have many question with the same layout, you can place the CSS in your theme custom.css file:

Code:
@media (min-width: 760px) {
 
  .question-container.numeric-multi .ls-group-dynamic .ls-input-group > div {
    float: left;
    width: 100%;
    max-width: 130px        
  }
}
 
 
@media (max-width: 760px) {
 
  .question-container.numeric-multi .ls-group-dynamic .control-label {
    text-align: left;      
  }
 
  .question-container.numeric-multi .ls-group-dynamic > div > div {
    float: left;
    width: 100%;
    max-width: 130px        
  }
}

Cheers,
Tony Partner

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

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 1 week ago #242389 by DenisChenu
Replied by DenisChenu on topic Position of the "equals sum" display
In my opinion : this issue can be reported.

community.limesurvey.org/bug-tracker/

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.

Please Log in to join the conversation.

  • equilibrium_21
  • equilibrium_21's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 1 week ago #242403 by equilibrium_21
Replied by equilibrium_21 on topic Position of the "equals sum" display
Thank you Tony for your detailed answer!

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose