I easily added the :hover pseudo class to the checkbox to change the background color to a bright green but now I want that background color to stay there once you tick the box but can’t get it to work at all.
Hi @cultithrive
To keep the background color of a checkbox when it is checked, you can use the :checked pseudo-class in combination with the + adjacent sibling combinator. The + combinator selects the element immediately preceded by the former element.
Here is an example of how you can use these pseudo-classes and combinators to achieve the desired effect: