- Posts: 34
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Exactly this is a big argument for tooltips.who may be able to answer without reading the examples and explanations
I see no big difference between your "two-column" idea and this (it's a table with one row and two columns)It's better to have access to the information needed to answer the question without any superfluous elements.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify this question var thisQuestion = $('#question{QID}'); // Insert header text var insertedText = "Inserted text"; $('table.subquestion-list thead tr:last td:first', thisQuestion).addClass('inserted-header').append(insertedText); }); </script> <style> td.inserted-[url=https://www.php.net/header]header[/url] { font-weight: bold; text-align: center; vertical-align: middle !important; } </style>
Please Log in to join the conversation.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ var thisQuestion = $('#question{QID}'); // Add a question class thisQuestion.addClass('custom-array'); // Column-specific classes $('table.subquestion-list tr', thisQuestion).each(function(i) { $('th, td', this).each(function(i) { $(this).addClass('column-'+i); }); }); }); </script><style type="text/css"> .custom-array table.subquestion-list col { width: auto !important; } .custom-array table.subquestion-list thead .column-0 { width: 22%; } .custom-array table.subquestion-list thead .column-1 { width: 30%; } .custom-array table.subquestion-list thead .column-2 { width: 12%; } .custom-array table.subquestion-list thead .column-3 { width: 12%; } .custom-array table.subquestion-list thead .column-4 { width: 12%; } .custom-array table.subquestion-list thead .column-5 { width: 12%; } </style>
Please Log in to join the conversation.
Please Log in to join the conversation.