Style Checkboxes and Radio Buttons

By: Michael Clark | Asked: 11/17/2025
ForumsCategory: How-toStyle Checkboxes and Radio Buttons
Michael ClarkMichael Clark asked 3 weeks ago

In a form where checkboxes and radio buttons are configured to display as buttons, they display properly until I customize the form's style. Changing the default field style to single bottom border breaks the style of checkboxes and radio buttons that are configured as buttons.

Anyone have custom css for styling checkboxes and radios as buttons? Or is there a master style sheet out there you can link me to?

Thx

Question Tags:

1 Answers

Best Answer

Michael ClarkMichael Clark answered 3 weeks ago

Here's custom CSS to handle checkboxes and radios styled as buttons:

Start your code here/* begin checkbox and radio button style overrides */
.frm_display_format_buttons .frm_label_button_container {
	border-radius: 30px !important;
	border: 1px solid #4199fd !important;
}
.with_frm_style .frm_label_button_container:hover {
	border: 1px solid rgba(255,255,255,0.0) !important;
}
.frm_display_format_buttons .frm_label_button_container {
    -webkit-transition: opacity .45s cubic-bezier(.25,1,.33,1),transform .45s cubic-bezier(.25,1,.33,1),border-color .45s cubic-bezier(.25,1,.33,1),color .45s cubic-bezier(.25,1,.33,1),background-color .45s cubic-bezier(.25,1,.33,1);
    transition: opacity .45s cubic-bezier(.25,1,.33,1),transform .45s cubic-bezier(.25,1,.33,1),border-color .45s cubic-bezier(.25,1,.33,1),color .45s cubic-bezier(.25,1,.33,1),background-color .45s cubic-bezier(.25,1,.33,1);
}
.frm_display_format_buttons .frm_label_button_container:hover {
    border-color: #0066cc !important;
	background-color: #0066cc !important;
	color: #fff;
}
.frm_display_format_buttons input[type="radio"]:focus + .frm_label_button_container, 
.frm_display_format_buttons input[type="checkbox"]:focus + .frm_label_button_container, 
.frm_nps__button:hover, .frm_nps__button:focus {
    border-color: #0066cc !important;
	background-color: #0066cc !important;
	color: #fff;
}
.frm_display_format_buttons input[type="radio"]:checked + .frm_label_button_container, 
.frm_display_format_buttons input[type="checkbox"]:checked + .frm_label_button_container {
    border-color: #0066cc !important;
	background-color: #0066cc !important;
	color: #fff;
}
/* end checkbox and radio button style overrides */

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right