How can I center a Single Choice property?

  • net90s
    Asked on January 23, 2020 at 11:26 AM

    Is it possible to center this Single Choice property?

    I can center the text question about the button.  But the button and the answer will not center.



    Jotform Thread 2129323 Screenshot
  • David JotForm Support Manager
    Replied on January 23, 2020 at 1:04 PM

    Thank you for contacting us, please try injecting the following CSS code in your form as shown on this guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

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

    #input_23_0 {

        margin-left: 30% !important;

    }

    }

    Result:

    How can I center a Single Choice property? Image 1 Screenshot 20

    Note: also please try viewing the form in a real mobile device to double check.

  • net90s
    Replied on January 23, 2020 at 1:50 PM
    Okay, that worked. One last question, i
    s it possible to override the font size for “I understand for privacy reasons…”
    I’ve been trying but the CSS editor does not seem to accept the “text-size” function for this section of code.

    ...
  • David JotForm Support Manager
    Replied on January 23, 2020 at 3:06 PM

    Your new question will be addressed in the following forum thread: https://www.jotform.com/answers/2129714

  • net90s
    Replied on February 3, 2020 at 7:14 AM

    Hi-

    I am using the same CSS code for a different form:

    https://www.jotform.com/build/200325498244050

    but I can't figure out why it doesn't work.

    I've updated the input ID to match that of the new form.

    Thank you.


  • jherwin
    Replied on February 3, 2020 at 9:56 AM

    Please try this custom CSS code:

    input#input_9_0 {
        margin-left: 30%!important;
    }
    @media only screen and (max-width: 480px) {
    input#input_9_0 {
       margin-left: 30%!important;
    }}

    Guide: How-to-Inject-Custom-CSS-Codes

    Please give it a try and let us know how it goes.

  • net90s
    Replied on February 3, 2020 at 11:50 AM
    That worked, thanks.
    ...