Welcome, Guest
Username: Password: Remember me

TOPIC: Making blocks of colour the answer options

Making blocks of colour the answer options 3 years 1 month ago #64177

  • barnaby1
  • barnaby1's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
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
The administrator has disabled public write access.

Re: Making blocks of colour the answer options 3 years 1 month ago #64182

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4180
  • Thank you received: 784
  • Karma: 358
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 3 years 1 month ago by tpartner.
The administrator has disabled public write access.

Re: Making blocks of colour the answer options 3 years 1 month ago #64184

  • barnaby1
  • barnaby1's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
Nice idea :)

Thanks Tony.
The administrator has disabled public write access.

Re: Making blocks of colour the answer options 3 years 1 month ago #64286

  • atiut
  • atiut's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 76
  • Thank you received: 2
  • Karma: 1
you can also make image files (8-bit PNGs would probably be the lightest solution)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.116 seconds
Donation Image