Connecting two questions to show they are related. | XM Community
Skip to main content
Question

Connecting two questions to show they are related.

  • 14 August 2019
  • 1 reply
  • 14 views

I would like to somehow connect two questions by either giving them a distinct background color or by making a box around them to show that they are directly connected/related. What I have now is a custom background-color, but I have been unable to remove the small amount of whitespace that remains between the two questions.

!



To give the background color I used the following Javascript

jQuery("#"+this.questionId+" .QuestionText").css("background","#E5E5E5");

jQuery("#"+this.questionId+" .QuestionBody").css("background","#E5E5E5");

});



I have attempted to manipulate the padding between the questions using



jQuery("#"+this.questionId+".QuestionOuter").css("padding-bottom","0px");



and



jQuery("#"+this.questionId+".QuestionOuter").css("padding-top","0px");



Respectively, but the white space still remains. Any suggestions would be appreciated.
You have to also look at the separator between questions, the top and bottom margins, and the padding and/or margins of the elements at the top or bottom within the questions.

Leave a Reply