You know that you can add an image as a background image for textarea using :
textarea {
background:#fff url(background.png) no-repeat center scroll;
}
How can I have text (not image, nor text as an image) as a background for textarea ?
It isn't the text contained in the textarea itself. It is some text behind. The user can write in the textarea, and, just like the background image, see the background text behind.
CSS2 preferred, CSS3 and js are OK.
How about the placeholder attribute:
<textarea rows="5" cols="30" placeholder="enter optional message"></textarea>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With