Webkit Info

I found this code on internet and using it on my page to change the placeholder color :

::-webkit-input-placeholder {
color:black;
}

It changes the color of placeholders to black.
I am not sure what this(webkit) is can anyone explain or provide a link? Thanks!

It’s a
Vendor Prefix

It would be nice if all browsers supported the same CSS properties, but unfortunately that is not always the case.

The webkit is a vendor prefix for webkit browsers.
Prefixes are sometimes needed on newer css properties before they have full support.

1 Like

so these are not standard properties thats why we have to use webkit keyword?

Yes.

You will need the other vendor pre-fixes also.

3 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.