SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard
    Join Date
    May 2002
    Posts
    1,370
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    calling images with placeholder

    How can I call this image within the td container?

    <td height="36" colspan="3" valign="top"><div align="right"><img name="logo" src="" width="110" height="28" alt="" class="LOGO"></div></td>

    ----------------------
    .LOGO {
    background: url("image/cal.gif");
    }

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "Hello, image?"

    What do you mean, call the image - do you mean get a reference to it in Javascript?

    Is that grey text your sig or part of the question? You can't set a background-image on an image - just put the image in the HTML directly.

  3. #3
    SitePoint Wizard
    Join Date
    May 2002
    Posts
    1,370
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did so.

    thanks. BB

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by buddy
    You can't set a background-image on an image
    lol - I know what you mean but you can actually put an image in the background of an image.

    e.g.
    http://www.pmob.co.uk/temp/image-on-image.htm

    I'm wondering if datadriven just simply wanted to put the image in the background of the div instead.


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
  •