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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Background image in a cell

Status
Not open for further replies.

FranckM

Programmer
May 8, 2002
76
CA
I'm trying to get a background image to appear in a cell of a table. In netscpae the background dosen't appear, in IE everything works. Any ideas on what the problem might be?
 
The background property of the td tag is not available in NetScape.

There may be a way to get around it by playing with layers & positioning, but I'm not sure how to do that.
 
Hehe, I don't want to try to code that eheh. Thanks for the help, I came to the saem conclusion looking around the web, it just won't work.
 
The background property IS available for <td> in Netscape starting from very old versions.

I use it for years and don't have any problems to place an image into cell's background.
There should be a problem with your code syntax.
 
My apologies for the bad info then...I see my reference book is copyrighted 1998.

Although this example doesn't work for me in NetScape. Starway, can you give some advice how to make this example work? Thanks!

<html>
<head>
</head>
<body>
<table width=50%>
<tr>
<td background=&quot;sm_psTrack.jpg&quot;>&nbsp;<td>
</tr>
</body>
</html>
 
This is very simple:
background image should not be shown if the cell is empty. You have to add &-n-b-s-p-; between <td></td> tags.
(remove all &quot;-&quot; and don't forget &quot;;&quot; at the end)

IE shows what you want but breaks the html rules.

good luck
 
And what about closing </td> tag?
What I see is two opening tags: <td> <td> without any closing one (I didn't pay attention to this before).

NN requires strict following the correct syntax.

If it's not the case, I remember about some problem in NN with very small background images.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top