Welcome to the LimeSurvey Community Forum

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

Modificare le dimensioni di un array

  • FrancescaP
  • FrancescaP's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 4 months ago #209053 by FrancescaP
Modificare le dimensioni di un array was created by FrancescaP
Buonasera a tutti,

ho creato un array con scala da "1- Per nulla d'accordo" a "10 - Totalmente d'accordo".
Per rendere leggibili le due etichette senza che vengano spezzettate a capo, vorrei ridurre in larghezza lo spazio delle sotto-domande; è possibile farlo?

Ho già provato a diminuire il carattere della scala, ma la visualizzazione non è il massimo.

Grazie mille,
Francesca
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #209055 by Joffm
Replied by Joffm on topic Modificare le dimensioni di un array
Buona sera, Francesca.

vorrei ridurre in larghezza lo spazio delle sotto-domande


Qui insieme a lettere minuscole <span style="font-size:9pt">


Oppure modifica la larghezza delle colonne


Con questo javascript e css.
Code:
<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>
Code:
<style type="text/css">.custom-array table.subquestion-list col {
    width: auto !important;
  }
 
  .custom-array table.subquestion-list thead .column-0 {  width: 30%; }
  .custom-array table.subquestion-list thead .column-1 {  width: 15%; }
  .custom-array table.subquestion-list thead .column-2 {  width: 5%; }
  .custom-array table.subquestion-list thead .column-3 {  width: 5%; }
  .custom-array table.subquestion-list thead .column-4 {  width: 5%; }
  .custom-array table.subquestion-list thead .column-5 {  width: 5%; }
  .custom-array table.subquestion-list thead .column-6 {  width: 5%; }
  .custom-array table.subquestion-list thead .column-7 {  width: 5%; }
  .custom-array table.subquestion-list thead .column-8 {  width: 5%; }
  .custom-array table.subquestion-list thead .column-9 {  width: 5%; }
  .custom-array table.subquestion-list thead .column-10 {  width: 15%; }
</style>

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: lfanfoni, FrancescaP
The topic has been locked.
  • FrancescaP
  • FrancescaP's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 4 months ago #209065 by FrancescaP
Replied by FrancescaP on topic Modificare le dimensioni di un array
Dove devo inserire javascript e css?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #209073 by Joffm
Replied by Joffm on topic Modificare le dimensioni di un array
Testo della domanda
Codice sorgente

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: FrancescaP
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose