I'm currently trying to highlight a column in an array (= question type). For example, I would like to have a red background, or a red border, for one of several response options (= columns) across all items (= rows). Is there any way to accomplish this in LimeSurvery (I am using V 1.92). I would be thankful for any suggestions.
Every table cell has an answer-code-specific class - answer_cell_00[answer code].
So, if you wanted to highlight the column with answer code "2", you could add something like this to the end of template.css (where "12345" is the question code.
Thank you very much, this looks perfect to me. Unfortunately, I was not able to reproduce this with my own survey. I assume this is because I am not familiar with css. What I did is the following: I included the following text at the end of the template.css file:
What I hoped for was that the colum of answer code "9" (as defined in the "edit answer option" menue) for the array question with the code "page1" (as defined in the "edit current question" menue) would be displayed with a grey background and a black border at the left. I was not sure whether it would be necessary to specify the ID of the survey, question group, or question. Note that my question "page1" has 20 subquestions (i.e., rows). Maybe you have an idea what went wrong?
Ok, I see. I tried it again, this time replacing "page1" with "1553" (= the question ID), and also with "question1553" or "ID1553", but it didn't work. I also tried other answer codes (e.g., ".answer_cell_001"), and using another template. Not sure what is going wrong here. Maybe there are some general settings or features of the survey that interfere with this command at the end of the template.css file?
If the survey is activated or not usually should have no impact on the display of templates and changes in the CSS.
I guess what happened was, that you did not empty the cache and so you saw only the old version, once the survey was activated, you used a different link and the results became visible, because the cache wasn't used.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.