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

    How to align the email field placeholder text to center?

    Asked by ipbr21054 on March 15, 2016 at 06:46 PM

    Whilst you are there looking at the email address field you will see the grey text to the left of the field. 

    I'm going to also Center the grey text to its field so is it just text-align:center;

    to achieve this ?

  • Profile Image
    JotForm Support

    Answered by Kiran on March 15, 2016 at 06:50 PM

    I understand that you want to center the text (placeholder) in the email field. Please inject the following CSS code to your JotForm to align the placeholder text to center.

    ::-webkit-input-placeholder {

       text-align: center;

    }

    :-moz-placeholder { /* Firefox 18- */

       text-align: center;

    }

    ::-moz-placeholder {  /* Firefox 19+ */

       text-align: center;

    }

    :-ms-input-placeholder {  

       text-align: center;

    }

    This is how it should look like after adding the code.

     

    Hope this information helps!