- Posts: 11
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" data-author="Tony Partner"> $(document).ready(function() { // The number of questions to wrap in the flex container var numberQuestions = 2; // Identify the questions var thisQuestion = $('#question{QID}'); var rowQuestions = thisQuestion.add(thisQuestion.nextAll('.question-container:lt('+(numberQuestions-1)+')')); // Wrap the questions in a <div> element rowQuestions.wrapAll('<div class="question-flex-container" />'); }); </script>
<style type="text/css"> @media only screen and (min-width: 576px) { .question-flex-container { display: flex; justify-content: space-evenly; } } </style>
Please Log in to join the conversation.
@media only screen and (min-width: 750px) { .col1-question { float: left; width: 32%; margin-right: 2%; clear: left; } .col2-question { float: left; width: 65%; } }
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Therefore this solution.However, in my case different question types have different heights, which doesn't look good.
<style> .no-question .question-title-container, .no-question .question-valid-container { display:none; } .no-question .answer-container { padding-top: 0em; padding-bottom: 0.5em; } .no-question .question-container { border: none !important; } .no-bottom { border-bottom:1px solid #e6e6e6; margin-bottom:0; } .no-bottom .answer-container { padding-bottom: 0em; } </style>