How to align the email field placeholder text to center?

  • ipbr21054
    Asked on March 15, 2016 at 6: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 ?

  • Kiran Support Team Lead
    Replied on March 15, 2016 at 6: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.

    How to align the email field placeholder text to center? Image 1 Screenshot 20

     

    Hope this information helps!