What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Centering radio buttons on form

    Asked by snaplash on June 14, 2017 at 04:26 PM

    Hi I am using the radio buttons as shown:

     

    I have managed to center the text, but is it possible to center the Radio Button Switches themeselves?

     

    Thanks in advance

    Page URL:
    https://www.jotform.com/build/71526800633957

  • Profile Image
    JotForm Support

    Answered by Mike on June 14, 2017 at 05:34 PM

    You may try changing the field label alignment to the left, and leaving the label empty.

    Result:

    If you need any further assistance, please let us know.

  • Profile Image

    Answered by snaplash on June 14, 2017 at 06:01 PM

    Thankyou for the repsonse.

     

    It works in the simulator, but on an actual phone it does not.

     

    I am using a Galaxy S3 as the lowest common denominator for testing and it is not centered.

     

    Please advise!

  • Profile Image
    JotForm Support

    Answered by BDAVID on June 14, 2017 at 07:16 PM

    Please inject the following CSS code to center them in mobile views: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes 

    @media only screen and (max-width: 480px) {

    [data-type="control_radio"]{

        width: 50% !IMPORTANT;

        margin: auto !IMPORTANT;

    }

    }

    Result:

    Let us know if you need more help.