give css to placeholder code example
Example 1: css style placeholder
input::-webkit-input-placeholder {
}
input::-ms-input-placeholder {
}
input:-ms-input-placeholder {
}
input::-moz-placeholder {
opacity: 1;
}
input:-moz-placeholder {
opacity: 1;
}
input::placeholder {
}
Example 2: placeholder css
::-webkit-input-placeholder {color: pink;}
::-moz-placeholder { color: pink;}
:-ms-input-placeholder { color: pink;}
:-moz-placeholder {color: pink;}
Example 3: placeholder text css
input {
border: 1px solid black;
padding: 3px;
height: 20px;
}
input:placeholder-shown {
border-color: teal;
color: purple;
font-style: italic;
}
Example 4: placeholder text css
input {
border: 1px solid black;
padding: 3px;
height: 300px;
}
input:placeholder-shown {
border-color: teal;
color: purple;
font-style: italic;
}