Style Checkboxes to look like Buttons?
-
Hello! Is there some way to style CF7 checkboxes to look like buttons? I’ve been able to add a border to my checkboxes, but I can’t make the label and surrounding border change color once the checkbox (hidden or display: none at this point) is selected.
Code currently looks like this:
span.wpcf7-list-item { display: inline-block; margin: 0 0 15px 0; } .wpcf7-list-item { margin: 0 0 20px 1em; border: 1px solid #f26922; border-radius: 40px; text-transform: uppercase; font-size: 16px; padding: 10px; width: 100%; }
I thought adding the following code would achieve what I was looking for, but it did nothing:
input[type=checkbox]:checked + label { background-color: #f26922; color: #333333; border-color: #333333; }
Any help in this would be tremendously appreciated!!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Style Checkboxes to look like Buttons?’ is closed to new replies.