|
-
Jun 30th, 2005, 07:48 AM
#1
Html/css
Is it possible to put a text watermark on the background of a textarea or would it have to be done with an image?
-
Jun 30th, 2005, 08:00 AM
#2
Re: Html/css
using css you can just add background:url("<img_location>");
Edit:
didn't read your question properly.
Thats with an image, don't know about using text.
Last edited by DeadEyes; Jun 30th, 2005 at 08:05 AM.
-
Jul 1st, 2005, 12:07 AM
#3
Re: Html/css
I have never seen it, so it's probably not possible.
I did have a minor brainstorm right now though, you could have an IFRAME, make it editable, give it the SRC of a page with a background you want. However, that'd be too much effort.
-
Jul 1st, 2005, 05:30 AM
#4
Re: Html/css
You could, in browsers that support CSS3, give the text area a partially transparent background colour and position it directly on top of an element containing the text. Opera might support this, I'm pretty sure that as of now, no other browser does.
An alternative ot the background colour, you could give a 1-pixel large PNG with that partially transparent colour. This will work in all browsers that support partially transparent PNGs, namely everything but IE. IE7 will support it. You can trick IE6 into supporting it, by using the proprietary filter: property.
The hardest part is positioning the text area and the text watermark right on top of each other, without losing their position in the flow.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|