Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Custom alternate colors within any one of the column in the grid

I have a grid question with 6 columns. I want to highlight column 6 different from other 5 columns. I was able to change the color using the CSS.

[code]
<style type="text/css">
 .grid_c6
 {background-color:#D8D8D8;}
 </style>
[code]

Is it possible to use a different alternate color schemes for the specified column?

Thanks,
Lawrence
related to an answer for: Grid question change width collum A
asked Oct 22, 2013 by Lawrence Bronze (2,100 points)
Can you clarify what you mean by different alternate color schemes?  Are you saying you have row-based alternating colors and instead of one solid color for column 6 you want different alternating colors?
Hi Gary,

Here is the instruction from client for highlighting specific two columns.

[COLUMNS in a grid for response values 1-4; separate columns for last two items].

Here is link showing current setup.
https://www.dropbox.com/s/2nk4wb9epbv7xo4/Grid.jpg

I am not sure whether we can create separate columns in grid for first two items.  So, I have changed the color scheme for the specific columns using CSS. However, it will be good if we are able add alternate colors for the first two columns.

1 Answer

+1 vote
 
Best answer
Hello
Did you try something like this
.grid_c6 .alt_color1{background-color: white !important;}
.grid_c6 .alt_color2{background-color: lightgrey !important;}


Of course change 'white' and 'lightgrey' by whatever color you want..

Let us know if it works
Have swing
answered Oct 24, 2013 by phronexia Bronze (3,270 points)
selected Oct 25, 2013 by Lawrence
It works great and looks nice. Thank you!
...