How to center my form with css?

  • atendimentozauara
    Perguntado em 29 de novembro de 2023 às 18:41

    Boa noite,

    Como fazemos para o formulário ficar centralizado na tela? No momento ele está à direita.

    Obrigada!

  • Raymond Jotform Support
    Respondido em 30 de novembro de 2023 às 02:13

    Hi Zauára,

    Thanks for reaching out to Jotform Support. Unfortunately, our Portuguese Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Portuguese, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    I understand you'd like to center the form in your Cadastro da Cliente & Ficha de Anamnese form. Right now, the form is aligned to the right due to the theme in use. We can center the form using some CSS codes. Let me show you how to do that:

    • In Form Builder, click on the Paint Roller icon on the right.
    • Next, click on the Styles tab, and paste the provided codes into the CSS box.
    /* Align form to center - 9573811*/
    .form-all {
     margin: auto !important;
    }
    /* Ends here */

    How to center my form with css? Image 1 Screenshot 20

    You may also test this demo form or clone it to your account to inspect it further.

    Reach out again if you need any help.

  • atendimentozauara
    Respondido em 30 de novembro de 2023 às 11:29

    Perfect! It worked! Thank you very much!