Skip to content Skip to sidebar Skip to footer

Value/placeholder - Different Styling For Words

I'm having problem with placeholders. I want to ask, is there possibility to style value in input fields but in the way to style words of that value different. For example, if we h

Solution 1:

unfortunately its not possible. when it comes to styling the form elements, there are many hindrances, color can be set to for an element not chracters, try this:

http://jsfiddle.net/Fgd2e/1/

Solution 2:

You may change the color of an input using the color style attribute. Having separate colors for each word is much harder. You need to have an overlay that displays the right colors. Besides, the cursor would disappear, so that the user wouldn't know where he currently is.

Post a Comment for "Value/placeholder - Different Styling For Words"