DEV Community

Cover image for Placeholder not grey enough
Visakh Vijayan
Visakh Vijayan

Posted on • Updated on

Placeholder not grey enough

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!

Top comments (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