SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wink Adding a picture to a text box?

    Hi! I was wondering how I would go about adding a picture to a text box? I know this simple b/c I have done it before but it's been awhile and I don't remember the HTMl I need to use! Help anyone? Thanks

    Alicia

  2. #2
    SitePoint Enthusiast darkfires's Avatar
    Join Date
    Apr 2002
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well... to add a picture to a web page using HTML use..

    <img src="pathOfImage/blah.gif" width="widthOfImage" height="heightOfImage" border="0" alt="Description of Image">

  3. #3
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't add an image to thearea inside a text box, but you can use CSS to add a background image to a text box (which will look like the image is "in" the text box).
    Code:
    <style>
    textarea .withbackground
    {
      background-image: url("images/picture.jpg")
    }
    </style>
    
    <textarea class="withbackground" rows=5 cols=10></textarea>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •