How to align the email field placeholder text to center?

  • Profile Image
    ipbr21054
    Asked 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
    Kiran
    Answered 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!