47 users online (1 members and 46 guests)  


  Results 1 to 8 of 8

Related

  1. Cell background color    Forum: CSS Forum
    Replies: 5
  2. Table background image    Forum: HTML Forum
    Replies: 3
  3. table cell background    Forum: CSS Forum
    Replies: 3
  4. Replies: 5
  5. Table/cell background image in CSS    Forum: CSS Forum
    Replies: 1
  1. #1
    Mikailus's Avatar
    Ugly Geezer

    Status
    Offline
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    135

    Table/cell background image in CSS

    This was part of another thread but I have a specific problem which others may come up against so I'll put it here.

    I'm trying to set the background of a cell to display an image with no success. I seem to be getting the syntax or something wrong.

    I've tried something like:

    In the css -

    TD.img {
    background-image: url('http://www.domain.com/images/img.gif')
    }

    combined with

    <td class="img" etc> to set the background.

    Result - blank cell.

    Every other way I try results in the CSS modifying itself by removing all the punctuation ( /'s and .'s ) from the URL when I save it.
    Last edited by Mikailus; 03-06-2003 at 06:08 PM.

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    Looks like you are missing a ;

    Code:
    TD.img {
    background-image: url('http://www.domain.com/images/img.gif');
    }
    Dave

  3. #3
    Mikailus's Avatar
    Ugly Geezer

    Status
    Offline
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    135
    Duh, how did I miss that ...correct but...still doesn't work.
    Last edited by Mikailus; 03-06-2003 at 06:39 PM.

  4. #4
    Mikailus's Avatar
    Ugly Geezer

    Status
    Offline
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    135
    Erm...heh...of course linking the page to the style sheet helps too...so I get graded a double "Duh" on this paper.

  5. #5
    Mikailus's Avatar
    Ugly Geezer

    Status
    Offline
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    135
    Any chance we can, you know...delete this entire thread before Dean gets back?

    (Check for $10 is in the mail.)

  6. #6
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    *shakes head*
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  7. #7
    Mikailus's Avatar
    Ugly Geezer

    Status
    Offline
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    135
    I'll take that as a "No" then shall I?


  8. #8
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    lol, too late huh.

    You are hereby sentenced to 6 months spam patrol.



Tags for this Thread