• Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Log In
  • Get Easy Forms
  • Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Log In
  • Get Easy Forms
home/Knowledge Base/Developers "How To's"/How can I add custom css styles to radio buttons?
Popular Search:Getting Started

How can I add custom css styles to radio buttons?

585 views 0 September 30, 2019 Updated on October 31, 2023 admin

In two steps:

1. The first step is adding the Container CSS Class: custom-control to the radio button field

– https://docs.easyforms.dev/form-builder.html#custom-radio-button

2. Then, you need use a CSS Theme to inject the CSS styles to your form (color, size, etc.). For example, to display a radio button in red color you can use:

.custom-control .radio input:checked+label::before,
.custom-control .checkbox input:checked+label::before,
.custom-control .inline-control-radio input:checked+label::before,
.custom-control .inline-control-checkbox input:checked+label::before
    border-color: red;
}

input:checked+label::after, 
.custom-control .inline-control-radio input:checked+label::after, 
.custom-control .inline-control-checkbox input:checked+label::after {
    content: '';
    display: inline-block;
    position: absolute;
    width: 6px;
    height: 6px;
    left: 4px;
    top: 8px;
    margin-left: -16px;
    border: 1px solid red;
    border-radius: 50%;
    background-color: red;
}

Related documentation |  CSS Themes Management

Was this helpful?

Yes  1 No
Related Articles
  • Customize the Landing Page, Login Page and Application design
  • How to compare two fields to pass the validation (jQuery Validation)
  • How To remove “For more details please go here” from the email notifications
  • How to set the PHP CLI path in the application
  • How To Change the Login Page Slogan
  • How To Remove the Logo from the Form page

Didn't find your answer? Contact Us

Leave A Comment Cancel reply

You must be logged in to post a comment.

Developers "How To's"
  • How can I add custom css styles to radio buttons?
  • Customize the Landing Page, Login Page and Application design
  • How to compare two fields to pass the validation (jQuery Validation)
  • How To remove “For more details please go here” from the email notifications
  • How to set the PHP CLI path in the application
  • How To Change the Login Page Slogan
View All 17  
Popular Articles
  • How to Show/Hide HTML elements with Conditional Rules
  • How to enable / disable DEBUG mode
  • How to Submit a Form as WhatsApp Message
  • How to update Form Stats from the command line
  • How to compare two fields to pass the validation (jQuery Validation)
KB Categories
  • Add-Ons
  • Advanced Techniques
  • Common Issues & Troubleshooting
  • Developers "How To's"
  • Getting Started
  • How To

  How To Add A Tracking Code to your Forms

Customize the Landing Page, Login Page and Application design  

About Easy Forms

With Easy Forms you can create unlimited web forms and most importantly the complete management of them without paying monthly fees

Resources
  • Knowledge Base
  • Documentation
  • Pre-sales Questions
  • Blog
Useful Help Links
  • Get Easy Forms
  • Live Demo
  • License Terms
  • Contact Us
Frequent Visit Links
  • Pre-Sales Questions
  • System Requirements
  • Installing Easy Forms
  • Upgrading Easy Forms
  • Privacy Policy
  • © 2015 - 2024 Baluart EIRL. All Rights Reserved.

Popular Search:Getting Started