Styling :checked State for Form Inputs in CSS


Provide visual feedback for checked state in checkboxes and radio buttons.

Source Code

input[type="checkbox"]:checked + label {
    color: #4CAF50;
    font-weight: bold;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments