I'm looking to customize the placeholder text in an input field. I want the main placeholder text to be in black and have a red star indicating it's a required field. However, my attempt to set the color of the star specifically to red using `::-WebKit-input-placeholder:after` didn't work as expected. Can someone suggest another method to achieve this color customization?
I've already tried using the following code snippet, but it didn't give me the desired result:
::-WebKit-input-placeholder:after {
content: "*";
color: red;
}
For demonstration purposes, you can check out the image by visiting the link below: https://i.sstatic.net/Go2Co.jpg