Closed Thread Icon

Preserved Topic: Table background and Netscape 4.7 (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=20495" title="Pages that link to Preserved Topic: Table background and Netscape 4.7 (Page 1 of 1)" rel="nofollow" >Preserved Topic: Table background and Netscape 4.7 <span class="small">(Page 1 of 1)</span>\

 
OlssonE
Maniac (V) Inmate

From:  Eagleshieldsbay, Sweden
Insane since: Nov 2001

posted posted 04-25-2002 15:26

Hi! I'm having trouble when I add a background to my table. Then all the cells inside get the same bg in ns4.7. Is there anything I can do to get rid of this? http://www3.park.se/~te03-15

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 04-25-2002 16:37

OK, here's a kludge that works for netscape. Set the overall background image for the table, and then set all of the individual <td>'s to have a background image of a blank GIF file. (Easiest to just do this bit through a stylesheet, rather than trying to spec each <td>. This should work, I believe.

Your pal, -doc-

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 04-25-2002 16:47

Hrmph, so sorry, my bad, that didn't work just like I said. Instead, I created one table with the overall background in it, then another table inside with the blank.gif image for the <td>'s, like this...

<table cellspacing="0" cellpadding="0" border="1" background="background.jpg" width=500 height=300>
<tr>
<td><table cellspacing="2" cellpadding="2" border="0" width=100% height=100%>
<tr>
<td background="blank.gif">foo</td>
<td background="blank.gif">bar</td>
</tr>
<tr>
<td background="blank.gif">fiddle</td>
<td background="blank.gif">dee</td>
</tr>
</table></td>
</tr>
</table>

Now *that* works! (At least in the top 4 browsers, IE, NS, Mozilla and Opera.)

Your pal, -doc-



[This message has been edited by DocOzone (edited 04-25-2002).]

OlssonE
Maniac (V) Inmate

From:  Eagleshieldsbay, Sweden
Insane since: Nov 2001

posted posted 04-25-2002 18:26

Ok thanx for the help Doc! It works now!

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 04-27-2002 00:52

Nice tip Doc!

Man I wish I knew that about 6 months ago. I spent all kinda time slicing my BG image up to put a piece in each cell :-p~

On a side note:

I never realized untill just now how much harder it is to type with one hand full of dry roasted peanuts.

-Butcher-

a blind squirrel
Nervous Wreck (II) Inmate

From: Seattle, Washington, United States
Insane since: Feb 2002

posted posted 04-27-2002 00:56

Peanuts indeed!

Seriously though, that is a great tip and one that I wish a knew before as well. Thanks!

a blind squirrel http://www.smileycat.com

« BackwardsOnwards »

Show Forum Drop Down Menu