Help with some quick CSS

By: Walter Jones | Asked: 08/24/2022
ForumsCategory: General questionsHelp with some quick CSS
Walter JonesWalter Jones asked 2 years ago
For the life of me I can't seem to get my check boxes to stay black when selected.  I have tried modifying active but it appears that it only goes black on hover and once it's clicked they go back to white. Some quick help maybe on this one???
1 Answers
Victor Font answered 2 years ago
Are you talking about the background color after selection? Active is a psuedo element, you need to target the checked property. You can do this for all the checkboxes on the page with a single block of code. Here's an example in pastebin: there's probably a more elegant way of doing it, but this is the basic.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community