Home Forums Front-end Issues CSS Styling based on value of field Reply To: CSS Styling based on value of field

  • Hi! I’m looking for the exact same thing, has any of you guys figured out how to do it?

    Currently I have a selector field with values in it, like @deejr on the first post. I want either to change the background of the selected value on the front-end or change the value color (in the front-end also), based on the user’s choice. Fields have numbers as possible choices, so if a user chooses “99”, the color should be blue, if he chooses 82, green, etc.

    Also I need this to work with a field in particular. Any idea of how to implement this using HTML, CSS or php? I’m currently using this theme btw:

    I’ve read @giovannicold ‘s answer but I can’t get it to work, where should I place the code exactly?

    Thanks in advance.