- Posts: 17
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
1 year 1 week ago #242382
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
1 year 1 week ago #242388
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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):
Desktop:
Mobile:
Sample survey attached:
If you have many question with the same layout, you can place the CSS in your theme custom.css file:
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:
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
1 year 1 week ago #242389
by DenisChenu
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.
Replied by DenisChenu on topic Position of the "equals sum" display
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
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.