Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDan Putnam
Front End Web Development Techdegree Student 8,596 PointsCan't style checkboxes
How can I change the color of a checkbox in css?
1 Answer
Steven Parker
231,269 PointsTricky question! You really can't change the color of a checkbox, at least not in a reliable, browser-independent way.
But the good news is that you can hide the checkbox itself, but still use its state to control the display of another element (possibly a pseudo-element) that replaces it. It's a bit complicated to get into here, but I found this neat site with several downloadable CSS and image libraries of alternate and colored checkboxes and radio buttons. If you search the web, you can find plenty other resources around like it also.