SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple <TD> question

    Does NS have a background image element for a <TD> ?

    <TD background="images/someimage.gif"> works fine in IE but not in NS.

    Why!? Could I do it with CSS?

  2. #2
    Captain Internet neil's Avatar
    Join Date
    Jun 2001
    Location
    n.ireland
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That should work in Netscape, have you closed the <TD> tag?
    neil - Geocities, the trailer park of the web
    .<.<.<.<.<.<.<.<
    WEB[retype.net] + [guff.org]
    ICQ[273981] AIM[neiim]

  3. #3
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by neil
    That should work in Netscape, have you closed the <TD> tag?
    Yes. Any other ideas?

  4. #4
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    It gets weirder...

    OK.

    Explain this.

    Using <TD Background="something.gif"></TD> works fine in IE, not in NS.

    BUT write a few letters within the tags so

    <TD Background="something.gif">Sitepoint</TD> and it works - the whole image displays in NS.

    Why is that?

  5. #5
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    UK
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol yeah. It's the same with bgcolor="..." I think

    I think it's because Netscape doesn't see the point in defining a background/bgcolor for a td that has nothing in it.

    A nice transparent GIF should solve it.

  6. #6
    SitePoint Addict
    Join Date
    Sep 2000
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ya Netscape has that problem where it read the table data if there isn't anything there.

    Transparent gif's or &nbsp; works just fine to correct that bug.

  7. #7
    ALT.NET - because we need it silver trophybronze trophy dhtmlgod's Avatar
    Join Date
    Jul 2001
    Location
    Scotland
    Posts
    4,836
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    or u can simply put &nbsp;

  8. #8
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Putting in a space doesn't work.

    What is the special char value for it? Something like %20?

    Maybe that'd work...

  9. #9
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's &amp;nbsp;
    ck :: bringing chris to the masses.

  10. #10
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    UK
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It depends what the td is for - if it's a pixel wide/in height then you'd want a transparent GIF. Otherwise you could just use a non breaking space (code above)

  11. #11
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bingo. The old &nbsp worked like a treat.

    Cheers guys.


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
  •