35 users online (0 members and 35 guests)  


  Results 1 to 4 of 4

Related

  1. Replies: 3
  2. DIV with image as background    Forum: CSS Forum
    Replies: 2
  3. background image    Forum: HTML Forum
    Replies: 9
  4. Background image    Forum: HTML Forum
    Replies: 4
  5. Can't get image to set as background    Forum: HTML Forum
    Replies: 4
  1. #1
    krak_d's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Liverpool
    Posts
    166

    Question td background image

    Could someone please explain what i'm doing wrong here!?
    I want to set a background image to a table cell.


    CSS bit!

    #tdimage {background-image: url (tdbg.jpg);}

    ..other bit!

    <td id="tdimage" colspan="2">text text blah blah..</td>


    cheers
    krak_d

  2. #2
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732
    Hi there krak_d ,

    You have a white-space problem here....

    #tdimage {background-image: url (tdbg.jpg);}


    close up the '(' to the 'url' thus...

    #tdimage {background-image: url(tdbg.jpg);}


    and away you go

    coothead

  3. #3
    krak_d's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Liverpool
    Posts
    166

    Thumbs up

    Doh!

    That was embarrassing...maybe i shouldn't be up all night doing this!

    thanks coothead.

  4. #4
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732
    Hi there krak_d,

    Please do not feel embarrassed
    We have all fallen foul of the dreaded white space and....
    sat up all night trying to solve the mystery

    coothead