#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    46
    Rep Power
    14

    cell background image - CSS


    Is there a secret to getting a cell background image to show up in Netscape 4.x? It looks fine in IE, but the cell color shows up instead of the image in Netscape.

    Here's my CSS code:

    TD.bkgrnd2 {
    background-color: #999999;
    background-image: url(../comp13_images/blue3.jpg);
    background-repeat: no-repeat;
    padding: 5px;
    }

    Thanks!
    -Midori
    Get Results with Vitamins and Minerals!
    www.DeadDoctorsDontLie.com
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
    The code works for me.

    Are your TD cells empty? <td></td>
    Try using a Non-Breaking Space
    Last edited by degsy; February 11th, 2002 at 12:51 PM.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    46
    Rep Power
    14
    My cells aren't empty. I just read that background-image won't work in NS 4.0 in tables. Aargh! Luckily, only about 10% of people who visit the site use Netscape.

    Thanks,
    Midori
    Get Results with Vitamins and Minerals!
    www.DeadDoctorsDontLie.com
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
    What version of NS4?

    The code worked for me using NS4.7
    NS4 does have major restrictions when applying attributes to TD's.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    46
    Rep Power
    14
    I'm trying it in NS 4.75 on the PC. How'd you get it to work? Do you hold the key?

    Thanks for your help!
    -Midori
    Get Results with Vitamins and Minerals!
    www.DeadDoctorsDontLie.com
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    46
    Rep Power
    14
    Thanks! Now I know that it works, but I have to dig through my code and find out what makes it stop working. (Need caffeine...)

    Thanks again for taking the time to try out my code!
    -Midori

    (later...) I figured out why it wasn't working!!! I was using relative paths in my linked style sheet and IE was looking for the file relative to the CSS file and Netscape was looking for it relative to the html file.

    I resolved the issue by including the code related to those images within the HTML file and deleting that CSS code from the style sheet. Does that make sense? Took some detective work, but it's working now!

    Thanks again for proving that it was possible!
    Last edited by mixmastermidori; February 12th, 2002 at 05:34 PM.
    Get Results with Vitamins and Minerals!
    www.DeadDoctorsDontLie.com

IMN logo majestic logo threadwatch logo seochat tools logo