I’m trying to figure out how to create a text style checkbox for my contact form. Rather than having a dropdown, checkbox, or radio button, I’d like to have text that is highlighted when clicked.
Sure I can make that happen with a hover over or click interaction but I’d like multiple options. This also needs to connect to the contact form as an element/text field.
The feature I’m trying to replicate is the contact form itself. More specifically, the multiple “text” checkbox feature.
So then you click, get in touch, the page scrolls down to the contact form. That contact form has multiple awesome features like the ability to type your name in-line and then choose from multiple options in a “checkbox” format.
@Kevin_Mooney - I was actually looking for a good example of this last night, but didn’t find one and went to sleep
Generally people will hide the actually form input element and then use either the label or the before/after psuedo elements to add the styling they like. Then by using the :checked css selector you can change the style of the label or the element.
Okay, if you could leave it up for some time that would be really great. I’m working on another section and will need to come back to this. I like how you’ve removed the checkbox margin so the text isn’t offset.