Adding horizontal dividing lines OR alternating row colors for a Side-by-Side question | Experience Community
Skip to main content
Solved

Adding horizontal dividing lines OR alternating row colors for a Side-by-Side question

  • Jun 19, 2019 7:23 PM UTC
  • 3 replies
  • 590 views

Forum|alt.badge.img+5
I would like to add horizontal dividing lines or alternating row colors to my side-by-side question. Does anyone have any code they would be willing to share? Changing alternate row colors in the Old Look and Feel editor did not seem to have an effect. Below is a screenshot for how it currently looks. Ideally I just want something subtle that makes it easier to differentiate the rows. !

Best answer by Anonymous

Hello @uhrxx005 , Use the below code: jQuery("#"+this.questionId+" .Choice").css("border-bottom","2px solid black"); //horizontal line jQuery("#"+this.questionId+" .ReadableAlt").css("background","#d2d2d6"); //alternate color
View original

3 replies

  • Answer
  • Jun 19, 2019 7:45 PM UTC
Hello @uhrxx005 , Use the below code: jQuery("#"+this.questionId+" .Choice").css("border-bottom","2px solid black"); //horizontal line jQuery("#"+this.questionId+" .ReadableAlt").css("background","#d2d2d6"); //alternate color

Forum|alt.badge.img+5
  • Author
  • Level 2 ●●
  • Jun 20, 2019 7:00 PM UTC
@shashi, this worked great! Thank you so much!

Forum|alt.badge.img
  • Aug 29, 2022 12:11 AM UTC

So, where exactly does this code go?