Can we use multi color text in place holder?

  • Profile Image
    ewsnet
    Asked on June 15, 2017 at 06:14 AM

    Hi Team

     

    Can we use multi color text in place holder? like we use text as Name and we wanted to mark it as mandatory, as there is no option to display mandatory filed by default (refer this link:http://prntscr.com/fk127x), so we added (*) with Name field, but Name and * color is same (black), so is there any possibility to mark * color as red or any other through CSS or any other way.

     

    Pls suggest

     

    Thanks

    Sanjay

  • Profile Image
    Saccarab
    Answered on June 15, 2017 at 06:37 AM

    You can use the below CSS to recolor your placeholders.

    ::-webkit-input-placeholder{

        color : red;

    }

    I am somewhat lost on what you are aiming to do, we could try an alternate way if you can elaborate on the issue.