MATRIX TABLE WITH ALTERNATING BACKGROUND COLORS | XM Community

MATRIX TABLE WITH ALTERNATING BACKGROUND COLORS

  • 10 October 2022
  • 3 replies
  • 162 views

Userlevel 1
Badge

Hello.
I am using a matrix table (text entry) that includes 6 "statements" and 4 "scale" points.
I'd like the background color for each statement to alternate between light blue and white - without javascript. What I'd like to achieve:

TABLE.png
Any help would be appreciated.



3 replies

Userlevel 7
Badge +27

Hi there, try adding the below CSS to the Style section of your survey's Look & Feel:
.Matrix .ReadableAlt {
background: #e1f5fe;
}

Userlevel 1
Badge

Hello, thank you. It worked perfectly.

Userlevel 4
Badge +16

Such a simple set of code! Tom_1842 is a coding wizard ⭐️

Leave a Reply