SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Hybrid View

  1. #1
    SitePoint Addict mixmastermidori's Avatar
    Join Date
    Sep 2001
    Posts
    337
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cell background image

    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
    Nature's Sunshine herbs and supplements

  2. #2
    <C²: web standards /> cybercodeur's Avatar
    Join Date
    Dec 2001
    Location
    Montréal
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I could be wrong, but I believe it is simply not supported by NS4.x

    If you want it to appear in a netscrap 4 browser, you will have to code around the problem by assigning it to your <td> as a html background attribute.

    Sorry.
    Denis Boudreau <C²/> - Web Standards & Accessibility
    [+] ICQ number: 115649885 || Email: denis@cybercodeur.net
    [+] Daily Weblog on Web standards and accessibility : CYBERcodeur.net

  3. #3
    SitePoint Addict
    Join Date
    Apr 2001
    Location
    Nottingham, England.
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It should work on NS4.x because mine does. But background-repeat doesn't. Then again, I didn't use background-color together with background-image together. Hmm.
    Absence of evidence is not evidence of absence.

  4. #4
    SitePoint Addict mixmastermidori's Avatar
    Join Date
    Sep 2001
    Posts
    337
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just read on another site, "This property does not work with hyperlinks, list items, definition lists, images, horizontal lines, tables, and form fields" in NS 4.0.

    Grr... what good is something that can't be seen in tables?

    Constantly frustrated with Netscape,
    Midori
    Nature's Sunshine herbs and supplements

  5. #5
    <C²: web standards /> cybercodeur's Avatar
    Join Date
    Dec 2001
    Location
    Montréal
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have an outstanding remedy to Netscape's frustration... drop it altogether and code only for NS6 and DOM browsers.

    If your clients still insist on supporting 4% of Web users usings obsolete technology, then live with it and offer a backwards-compatible product that will not last in upcoming brosers versions and platforms.

    Convincing your customers can be done. I've just did it for an 80k dollar contract of ours and convinced them to drop NS4 for the benefit of forwards-compatibility.

    Can you guys imagine how much fun I'm gonna have coding for DOM browsers only and being encouraged to do so?

    Oh man, I'm having an emotion just thinking about it
    Denis Boudreau <C²/> - Web Standards & Accessibility
    [+] ICQ number: 115649885 || Email: denis@cybercodeur.net
    [+] Daily Weblog on Web standards and accessibility : CYBERcodeur.net

  6. #6
    SitePoint Addict mixmastermidori's Avatar
    Join Date
    Sep 2001
    Posts
    337
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thought I'd post my resolution in case anyone is encountering the same problem...

    I discovered that Netscape will show background-image. I was using a linked style sheet and using relative paths for the images in the style sheet. IE looked for the image file relative to the style sheet, and Netscape looked for the image file relative to the HTML file. I resolved this problem by keeping the linked style sheet, but I removed the CSS code pertaining to the cells with background-imagess and insert it into the HTML file. Now it works in both browsers!

    -Midori
    Nature's Sunshine herbs and supplements

  7. #7
    <C²: web standards /> cybercodeur's Avatar
    Join Date
    Dec 2001
    Location
    Montréal
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So it does work hu?

    Guess I'll have to go back to my books and codes and check that out.
    Denis Boudreau <C²/> - Web Standards & Accessibility
    [+] ICQ number: 115649885 || Email: denis@cybercodeur.net
    [+] Daily Weblog on Web standards and accessibility : CYBERcodeur.net


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
  •