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!
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 trial
Dan PutnamFront End Web Development Techdegree Student 8,596 Points
Can't style checkboxes
How can I change the color of a checkbox in css?
Steven Parker225,712 Points
Tricky 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.