To be precise, I need to make google logo in my placeholder and to do so I need to color “G” and “g”, blue; “o” and “e”, red and so on… I found the i want to change color of “data-placeholder”.

Sorry, I am not a techie – just starting to learn! How could i set placeholder position & cursor position as same when i focus into Text area. By clicking “Post Your Answer”, you agree to our To subscribe to this RSS feed, copy and paste this URL into your RSS reader. HTML5 rocks!that’s cool, now i can realise placeholder without Java Script.That would be nice, but the problem is that when a browser doesn’t understand a selector, it invalidates the entire line of selectors (except IE 7).I had to read this 3 times to get it to click in my head…“when a browser doesn’t understand a SELECTOR, it invalidates the entire line of selectors”I keep looking at it and assuming it’ll behave like browser specific RULES since they look like rules.Chris – It might be worth updating this to address the moz change from pseudo-class to element Initially, the placeholder text is displayed without the label. Don’t forget translations: some languages need more room for the same word. Change an HTML5 input placeholder color with CSS Last Updated: 04-12-2018 In most of the browsers, the placeholder (in input tag) is of grey color, to change the color of this placeholder, non-standard ::placeholder selectors can be used, by which implement the color attribute in that particular selector. Everyone else has implemented a pseudo element.You might notice how in Firefox the color of the placeholder looks faded when compared to other browsers. Thank you so much for explaining the difference between ::placeholder and :placeholder-shown as well! Will it look like this?Should I add this line without a prefix like we do with other CSS properties?Agreed, as far as I can see there are no official W3C docs on this subject.Ok, where the heck put the vendor prefix with this:The styling of placeholder is working on computer browsers (Chrome), but not on mobile devices. That means that every browser has a different idea on how it should work.Firefox originally implemented this as a pseudo class, but changed it for For instance, if you want to change the color of the text when the input is focused. We want to show the username field prefilled as “@ourcompany.com”, and to remain as they type (though it should only pass the username).thank you…..yes,….its work fine…..but i want to set dark black color….Here’s a short mixing for styling your placeholder text.I would love it if you could let me know if this was helpful!
I tried itThanks!

So, Today I am sharing CSS Input Focus & Placeholder Effects. Browsers with HTML support for placeholder but without CSS support for that (like Opera) should be tested too. site design / logo © 2020 Stack Exchange Inc; user contributions licensed under The ::placeholder CSS pseudo-element represents the placeholder text in an or