I am trying to style the title attribute of a <input type="text"> using CSS. So this is what I did:
input[type="text"][title] {
font-style: italic;
color: gray;
}
It works okay, but when I enter data into the field, the data is gray and italic. I want the data (value) to be normal and black, and only the title to be italic and gray.
Any ideas?
titleattribute as this is handled by the OS. What you have selects aninputelement that has atitleattributetitleproperty into another thing and finally, you can customize this other thing. Take a look here