Change color of Place holder last character
I have a form with
* for required field in addition to helper text.
What i want is to change the Color of
* i.e. last character of placeholder
Is there any selectors for that?
In addition to below selector, selecting a
input::-webkit-input-placeholder (for webkit browsers)
thanks in advance!
A bit tricky, and you'll have to check yourself for the different browsers' support, but here is a Fiddle Demo for you :-)
Just moved the * to be a part of the :after element, and styled it separately.
This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here