Simon
Posts:
62
From:
London
Registered:
Aug 26, 2005
|
|
Matrix suggestion
Posted:
Nov 18, 2009 2:25 PM
|
|
I like the ability to control the look of each cell within a matrix e.g. background colour and text. However, this becomes a chore when creating a set of matrix questions with alternating light and dark shading on each row. Would it be possible to create an option to achieve this effect quickly for each matrix question e.g. by selecting a style for header (top) row and a primary and secondary for each alternate row.
|
|
torgeir
Posts:
1,090
From:
Oslo
Registered:
Jun 20, 2002
|
|
Re: Matrix suggestion
Posted:
Nov 19, 2009 8:51 PM
|
|
We should have a feature for this, yes. It's on our list of things todo.
One alternative is to add some javascript to do this. Add the following to a text somewhere (header, for example). This code MUST be on a single line (line breaks will be converted to html br-tags. In other words, remove ALL line breaks before pasting this into a survey.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script language="javascript"> $(document).ready(function() { $('.matrix tr:odd').css("background-color", "#BBBBBB"); }); </script>
Make sure no cells or cell groups have colors set, as this will override the above code.
|
|
torgeir
Posts:
1,090
From:
Oslo
Registered:
Jun 20, 2002
|
|
Re: Matrix suggestion
Posted:
Apr 1, 2010 11:42 AM
|
|
keep in mind that the first line of the code above is not necessary if you are running 6.3 or later. jQuery is already included from this version and later.
|
|
|
|
|