Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Shade/colour one option in an array

2 weeks 1 day ago #243553 by pthwaites
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.27.9+210726 (yes, I know - I'm trying to get my admin people to update)
Own server or LimeSurvey hosting: Own server
Survey theme/template: fruity
Hello all,

I see here  that it is possible to change the colour of some sections of an array. However, this thread doesn't show how to colour a single response option in an array. In my survey, I have a "I don't understand" option at the end of a Likert scale. We're concerned about people accidentally clicking "I don't understand", mistaking it for the first item in the Likert scale. So we'd like to shade that option to distinguish it from the others (see the "Current" and "Desired" images attached). Can this be done? Can anyone write me a short piece of code (and tell me where to add it - I have no experience with the backend/code sections in LS). 

Many thanks,


Please Log in to join the conversation.

2 weeks 1 day ago #243557 by tpartner
Try placing something like this in the source of the question text.

<style type="text/css">
    #question{QID} tr >  *:nth-child(2) {
        background-color: yellow;

Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose