SitePoint Sponsor |
|
User Tag List
Results 1 to 11 of 11
Thread: Simple <TD> question
-
Aug 7, 2001, 13:20 #1
- 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?
-
Aug 7, 2001, 13:49 #2
- 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]
-
Aug 7, 2001, 15:32 #3
- 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?
-
Aug 7, 2001, 15:38 #4
- 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?
-
Aug 7, 2001, 16:57 #5
- 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.
-
Aug 7, 2001, 17:00 #6
- 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 works just fine to correct that bug.
-
Aug 7, 2001, 17:01 #7
- Join Date
- Jul 2001
- Location
- Scotland
- Posts
- 4,836
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
or u can simply put
-
Aug 7, 2001, 17:04 #8
- 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...
-
Aug 7, 2001, 17:05 #9
- Join Date
- Oct 2000
- Location
- Austin, TX
- Posts
- 1,438
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It's &nbsp;
ck :: bringing chris to the masses.
-
Aug 7, 2001, 17:11 #10
- 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)
-
Aug 7, 2001, 17:16 #11
- Join Date
- May 2001
- Location
- Channel Islands Girth: Footlong
- Posts
- 5,882
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Bingo. The old   worked like a treat.
Cheers guys.
Bookmarks