Placeholder color text when active
-
Hi, I created a search field with a white background.
I needed the text “search…” in black, so I used that CSS and it works fine:
`#ajaxsearchlite1 > div > div.proinput > form > input.orig:-ms-input-placeholder {
color: r#000!important;
font-family: ‘Ubuntu’ !important;
}
#ajaxsearchlite1 > div > div.proinput > form > input.orig::-ms-input-placeholder {
color: #000 !important;
font-family: ‘Ubuntu’ !important;
}#ajaxsearchlite1 > div > div.proinput > form > input.orig::placeholder {
color: #000 !important;
font-family: ‘Ubuntu’ !important;
}BUT…., the problem is that when I start typing, the text goes back to white, and I can’t find the CSS to make it black !
Thanks for helping !
- The topic ‘Placeholder color text when active’ is closed to new replies.