Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bg table image doesn't appear in netscape 2

Status
Not open for further replies.

flasher

Technical User
Mar 4, 2002
245
US
Hi, I have a bg table image on this page. It appears beautifully in internet explorer and in Netscape, it doesn't show at all...except for a splattering of purple color here and there. The page looks awfull.. Is there anything I can do to remedy this??


Please check out the page in ie and then in netscape so you can compare what it's supposed to look like. (btw, I'm looking at it in Netscape 4.8.

Thanks a lot!
 
Hi flasher,

NS and IE don't handle table bg-images the same. There is a
workaround for this. Begin with a table with just ONE cell
in it, and make your background-image the background-image
of the CELL (not the table).

In this cell, create a new table with as many rows and
columns as you need for the content of your page. This way,
Netscape will display the background-image properly.

Hope it helps, Dutch
 
That's a simple solution!! Thank you !
 
Well, I tried making a table with one cell and inserting the image as the cell bg... even at that point when previewed in netscape, the bg image didn't show at all! The screen was completely blank! When I started inserting other page elements into this cell, bits and pieces of the bg image started appearing but very distorted, like before. So this doesn't seem to be the answer. Am I doing something wrong or is there an alternate solution?? Thanks a lot...
 
What's actually happening is that the background of each cell in Netscape is using the background of the underlying cell, but every new cell is reseting the position of the image. In other words, each new cell creates a new version of the background image. The workaround is quite easy though - just specify a dummy (empty) background for the new table. For example:

<html>
<body>

<table>
<tr><td background=&quot;mybackground.jpg&quot;>
<table background=&quot;&quot;>
<tr><td>Hello, this is cell 1</td></tr>
<tr><td>Hello, this is cell 2</td></tr>
</table>
</td></tr>
</table>
</body>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top