CSS Rating Sample

This sample samples shows how to customize the answers of rating enabled question.

This sample defines a CSS classed named my-rating-style. You can set this new class in the question properties of the questions that should use that style.

Once you have setup the class on your questions it will use the following code to set a different colors based on the answer rating value of each of the questions answers.

Answers classes are generated using following format where answerratingvalue will be replaced by the actual rating value set of the answer properties:

Here the full CSS code that will generate different colors of radio buttons or checkboxes b based on the answers rating values.

Last updated

Was this helpful?