Remove the padding between 2 questions | XM Community
Skip to main content
Solved

Remove the padding between 2 questions

  • October 30, 2019
  • 1 reply
  • 172 views

Akdashboard
Level 4 ●●●●
Forum|alt.badge.img+6
How do I reduce the distance between 2 questions? I have 1 MC question but 3 possible descriptive text questions above it. The descriptive text questions dispaly one of the options based on the choices of the previous question. Doing this method makes the survey langauge more flexible but the gap between the questions isn't great to look at.

Best answer by TomG

Where the space is coming from can be theme dependent. It also depends on how close together you want items. Try adding the following to your MC question. If it isn't what you want, use the browser's Inspect feature to find where the space is coming from and adjust accordingly. ``` Qualtrics.SurveyEngine.addOnReady(function() { var q = jQuery("#"+this.questionId); q.prev(".Separator").hide(); q.find(".QuestionText").css("padding-top","0px"); }); ```

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • October 30, 2019
Where the space is coming from can be theme dependent. It also depends on how close together you want items. Try adding the following to your MC question. If it isn't what you want, use the browser's Inspect feature to find where the space is coming from and adjust accordingly. ``` Qualtrics.SurveyEngine.addOnReady(function() { var q = jQuery("#"+this.questionId); q.prev(".Separator").hide(); q.find(".QuestionText").css("padding-top","0px"); }); ```