Welcome to WebmasterWorld Guest from 50.19.156.19

Forum Moderators: incrediBILL

Message Too Old, No Replies

Table Background Images (netscape problem)

please help me

     

stavs

11:23 pm on Jun 28, 2001 (gmt 0)

10+ Year Member



Hi

I am pulling my hair out over this problem. Does anyone know how to place a background image into a table (with rows and columns). I can do it no problem so it can be seen in IE using CSS to define the image and then using a class tag into the table. Below is the code that I am using:

------------------------------

in the head:

thetable{ background-color: #FFFFFF; background-image: url(images/theimage.gif); background-repeat: no-repeat}

in the body:

<table width="750" border="0" cellspacing="0" cellpadding="0" align="center" class="thetable">

------------------------------

But in NS the image only shows in the first cell of the table.

I would be indebted to anyone that provide the solution.

Regards, Stavs

stavs

12:11 am on Jun 29, 2001 (gmt 0)

10+ Year Member



I just can't see it

toolman

1:33 am on Jun 29, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try doing it in a td class instead.

tedster

2:25 am on Jun 29, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Here's another solution that seems to be very cross-browser compatible:
[netmechanic.com...]

The idea is to nest tables the higher level table holds the background image in one big cell, and the nested table, with the content in many cells, includes the code background="".

That last bit stops the Netscape 4.x quirks. I've been greatful to this tip ever since I found it.