Welcome to WebmasterWorld Guest from 54.147.189.54

Forum Moderators: incrediBILL

Message Too Old, No Replies

Table Background Images (netscape problem)

please help me

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

Preferred Member

10+ Year Member

joined:Mar 23, 2001
posts:402
votes: 0


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

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

Preferred Member

10+ Year Member

joined:Mar 23, 2001
posts:402
votes: 0


I just can't see it
1:33 am on June 29, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 25, 2000
posts:1786
votes: 0


Try doing it in a td class instead.
2:25 am on June 29, 2001 (gmt 0)

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 0


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.