Results 1 to 4 of 4

Thread: Html/css

  1. #1

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    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?
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196

    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.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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
  •  



Click Here to Expand Forum to Full Width