Changing color in textarea placeholder text

  • davidlieb
    Asked on August 9, 2017 at 11:47 AM

    Hi! I'm having trouble changing the color of the placeholder text in textarea's It comes in light gray against a gray background. I'd like to make it black. Am I missing that option in the form editor? 

    here's a screenshot:

    Changing color in textarea placeholder text Image 1 Screenshot 20

     

  • aubreybourke
    Replied on August 9, 2017 at 12:49 PM

    Yes, its possible:

    Changing color in textarea placeholder text Image 1 Screenshot 20

     

    Add this CSS:

    *::-webkit-input-placeholder {
       color: black;
    }
     
    *:-moz-placeholder {
       color: black;
    }
     
    *::-moz-placeholder {
       color: black;
    }
     
    *:-ms-input-placeholder {
       color: black;
    }

    How to Inject Custom CSS Codes

  • davidlieb
    Replied on August 14, 2017 at 5:43 PM

    Hi!
    Thanks for your reply. I injected the CSS, but the placeholder text still
    shows up in very light grey *when I click "preview form"*.
    Thanks!
    ...

  • David JotForm Support
    Replied on August 14, 2017 at 6:04 PM

    Try adding the following CSS instead:

    https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    .form-custom-hint {

       color:  black !important;

    }

     

    Here is how the form would look with the code added:

    https://form.jotformpro.com/72256632352959