CSS CSS Selectors Going Further with Attribute Selectors and Pseudo-Classes Element States Pseudo-Classes

Curious....

How would you use CSS to target/change the shape, size, and fill color of a checkbox in a form?

1 Answer

Steven Parker
Steven Parker
195,812 Points

You can't directly change the appearance of a checkbox with CSS.

But a common technique is to make the checkbox invisible and link it to a pseudo-element or sibling element which displays a desired replacement image.

I recently took the Angular Basics (JavaScript) course and saw this technique being used in the example project.

Interesting. Thanks, Steven!