Create a gist now

Instantly share code, notes, and snippets.

CSS: Plaholder style
input::-webkit-input-placeholder {
color: #999;
}
input:-moz-placeholder {
color: #999;
}
input:-ms-input-placeholder {
color: #999;
}
input:focus::-webkit-input-placeholder {
color: #d6d6d6;
}
input:focus:-moz-placeholder {
color: #d6d6d6;
}
input:focus:-ms-input-placeholder {
color: #d6d6d6;
}
<h1>Style placeholder with CSS</h1>
<form action="">
<input id="name" name="name" placeholder="Ecrivez votre nom" required>
<button type="submit">Valider</button>
</form>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment