Hi, how do I change the color of the placeholder? I added this code in Quick CSS, but the color has not changed.
:: – webkit-input-placeholder {color: # fdd02c; font-size: 12px;}
:: – moz-input-placeholder {color: # fdd02c; font-size: 12px;}
:: – ms-input-placeholder {color: # fdd02c; font-size: 12px;}
input :: placeholder {
color: # fdce2c; ! Important;
}
Hi Manuela,
Your code should work but your need to remove the spaces for example:
:: – webkit-input-placeholder {color: # fdd02c; font-size: 12px;}
should be:
::-webkit-input-placeholder {color: # fdd02c; font-size: 12px;}
You can use this instead:
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: # fdd02c;
font-size: 12px
}
::-moz-placeholder { /* Firefox 19+ */
color: # fdd02c;
font-size: 12px
}
:-ms-input-placeholder { /* IE 10+ */
color: # fdd02c;
font-size: 12px
}
:-moz-placeholder { /* Firefox 18- */
color: # fdd02c;
font-size: 12px
}
Best regards,
Nikko
I put the code that you suggested but not work.
by the way there should be no space between the hex color definition and hash !
#fdd02c – then it has to work like that
or try in a combination of enfold class and input:
.main_color ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: #fdd02c;
font-size: 12px
}
.main_color ::-moz-placeholder { /* Firefox 19+ */
color: #fdd02c;
font-size: 12px
}
.main_color :-ms-input-placeholder { /* IE 10+ */
color: #fdd02c;
font-size: 12px
}
.main_color :-moz-placeholder { /* Firefox 18- */
color: #fdd02c;
font-size: 12px
}
.main_color ::placeholder {
color: #fdd02c;
font-size: 12px
}
yes it work, thank you