How to center input text in an input field?

  • PLURALISMOYCONVIVENCIA
    Fecha de consulta 21 de noviembre de 2023, 5:29

    Buenos días,

    Me pregunto si me pueden ayudar. Me gustaría poder centrar algún campo de manera individual, sin que afecte a otros campos, por ejemplo, ¿Cómo puedo centrar el texto del campo que señalo a continuación en el formulario?. Muchas gracias.

    How to center input text in an input field? Image 1 Screenshot 20

  • Raymond Jotform Support
    Fecha de respuesta 21 de noviembre de 2023, 8:14

    Hi Enrique,

    Thanks for reaching out to Jotform Support. Unfortunately, our Spanish 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 Spanish, 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.

    If I understand your question correctly, you'd like to center the text entered into the NIF field. If so, we can do this easily using 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 in the CSS box, paste the provided codes below:
    /* center input text for NIF field - 9313341*/
    #input_560 {
     text-align: center !important;
    }
    /* Ends here */

    How to center input text in an input field? Image 1 Screenshot 20

    You can also test this demo form or clone it to your account to inspect it further. The same can also be done for other input fields by replacing the field IDs accordingly. Should you need help setting this up in any of your fields, let us know and we'll help you with it.

    Reach out again if you need any help.

  • PLURALISMOYCONVIVENCIA
    Fecha de respuesta 21 de noviembre de 2023, 8:24

    Muchas gracias por vuestra ayuda