Check out the LimeSurvey source code on GitHub!

Making blocks of colour the answer options

More
5 years 6 months ago #64177 by barnaby1
Great software by the way!

I need to have a selection of colours as the answer options to a question. That is, the user gets a question, and has to choose from a palette of colours. Can someone tell me the best way of doing this please.

Many thanks

Please Log in to join the conversation.

More
5 years 6 months ago - 5 years 6 months ago #64182 by tpartner
Place something like this in the source of the answer/sub-question:
<div class="colour1"></div>

And then something like this in template.css:
.colour1 {
    height: 30px;
    width: 100px:
    background-color: pink:
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 6 months ago by tpartner.

Please Log in to join the conversation.

More
5 years 6 months ago #64184 by barnaby1
Nice idea :)

Thanks Tony.

Please Log in to join the conversation.

More
5 years 6 months ago #64286 by atiut
you can also make image files (8-bit PNGs would probably be the lightest solution)

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form