DEV Community

Cover image for Placeholder not grey enough

Placeholder not grey enough

Visakh Vijayan
Willing to learn anything and everything exciting. Always awake. Skips food for fun.
Updated on ・1 min read

Got a request from a client asking to change the placeholder color. Apparently, they are getting confused by the color of the title of the input box and it's placeholder. :P

So this is what worked.

  color: red;
Enter fullscreen mode Exit fullscreen mode

Though still not sure what the :: does.

Anyways it worked!

Discussion (1)

gillmangareth profile image
Gareth Gillman

To answer your question at the end, :: is the selector for pseudo elements in CSS, you can use it in a multitude of ways including:

  • ::before
  • ::after
  • ::first-letter
  • ::nth-child

There are way too many to list here, W3 schools has a good list at