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

Connecting two questions to show they are related.

  • 14 August 2019
  • 1 reply
  • 12 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.

1 reply

Userlevel 7
Badge +27
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