- Posts: 4
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<div class="col-sm-1 col-xs-12" style="border-left: 2px solid black;"> <div class="row" style="margin-left: 2px;">
.answer_cell_006 { border-left: 2px solid #000000 !important; } @media only screen and (max-width: 768px) { .answer_cell_006 { border-left: 0 none !important; border-top: 2px solid #000000 !important; } }
The CSS solution works for me in all browsers. I suspect your problem was caching.thanks for your suggestions. Unfortunately they both do not work.
You seem to have inserted the script after the help section of all questions. It is supposed to be placed in the question source, not in question.pstpl.Furthermore, the border should only appear on matrix questions that use my mentioned own-defined scale, not on other question types (see screenshot 2 where the border should not appear).
That is a VERY old workaround. Try this updated script:Now i got the same graphical problems as in the other thread (see screenshot 1).
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { var newColPosition = 3; // Identify this question ID var qID = {QID}; // Insert a new column $('#question'+qID+' table.subquestion-list col:eq('+(newColPosition-1)+')', this).after('<col class="inserted-column" />'); $('#question'+qID+' table.subquestion-list thead th:eq('+(newColPosition-1)+')', this).after('<th class="inserted-column" />'); $('#question'+qID+' table.subquestion-list tbody tr').each(function(i) { $('td:eq('+(newColPosition-2)+')', this).after('<td class="inserted-column" />'); }); }); </script>
@media only screen and (min-width: 768px) { .inserted-column { min-height: 4px !important; padding: 0 !important; } }
@media only screen and (max-width: 801px) { .inserted-column { min-height: 4px !important; padding: 0 !important; } }