0
How to style the placeholder in html
I have used the following code for modifying the default styles of placeholder. but still ther are no modifications. the code is ::-webkit-input-placeholder { /* Chrome/Opera/Safari */ color: pink; } ::-moz-placeholder { /* Firefox 19+ */ color: pink; } :-ms-input-placeholder { /* IE 10+ */ color: pink; } :-moz-placeholder { /* Firefox 18- */ color: pink; }
7 Respuestas
+ 5
strange it works fine for me ,how about showing me your code
https://code.sololearn.com/WevG5aY9PjfU/?ref=app
+ 4
please show us your code so we can help you if there's a error in it ,if you don't it's hard for us to help you ......
+ 2
how about you try this
input::placeholder {
color: red;
}
+ 2
@Leon your code works on my side.
0
I have tried that but no change
0
Have a look here. This should help explain things.
https://css-tricks.com/almanac/selectors/p/placeholder/
0
thank u