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!

Another Background Image Problem in Netscape

Status
Not open for further replies.

egims

Technical User
Jun 5, 2001
96
US
In the below code I wish to use a background image (see top line). I am using CSS so that the image will not repeat (no tile).

Since the background image will not tile I have also used the bgcolor="#000000" so that below the image the color black will display.

This works perfectly in Explorer, and in Netscape UNTIL something is placed in a <td>. The moment something is placed in a <td> Netscape inserts the background color specified in the top line of the code into any <td> cell even though no background color for it is specified.

This has the effect of blocking the background image, which I want to avoid. Any help would be greatly appreciated.


<td valign=&quot;top&quot; background=&quot;images/nav.jpg&quot; bgcolor=&quot;000000&quot; width=&quot;160&quot; height=&quot;1&quot;>
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;160&quot; height=&quot;1&quot;>
<tr>
<td align=&quot;left&quot; valign=&quot;top&quot; width=&quot;160&quot; height=&quot;30&quot;>
</td>
</tr>
<tr>
<td align=&quot;center&quot; valign=&quot;top&quot; width=&quot;160&quot; height=&quot;90&quot;>
</td>
</tr>
<tr>
<td align=&quot;left&quot; background=&quot;&quot; valign=&quot;top&quot; width=&quot;160&quot; height=&quot;10&quot;>
Test</td>
</tr>
<tr>
<td align=&quot;center&quot; valign=&quot;top&quot; width=&quot;160&quot; height=&quot;90&quot;>
</td>
</tr>
<tr>
<td align=&quot;left&quot; valign=&quot;top&quot; width=&quot;160&quot; height=&quot;10&quot;>
</td>
</tr>
<tr>
<td align=&quot;center&quot; background=&quot;&quot; valign=&quot;top&quot; width=&quot;160&quot; height=&quot;90&quot;>
<img src=&quot;images/shim.gif&quot; width=&quot;130&quot; height=&quot;90&quot; alt=&quot;Roof Leak&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td align=&quot;center&quot; width=&quot;160&quot; height=&quot;10&quot;>
</td>
</tr>
<tr>
<td align=&quot;left&quot; background=&quot;&quot; width=&quot;160&quot; height=&quot;20&quot;>
<p class=&quot;smallnav&quot;>
Phone: *******
Fax: *******</p></td>
</tr>
<tr>
<td align=&quot;center&quot; background=&quot;&quot; width=&quot;160&quot; height=&quot;100%&quot;> </td>
</tr>
</table></td>
 
<td valign=&quot;top&quot; background=&quot;images/nav.jpg&quot; bgcolor=&quot;000000&quot; width=&quot;160&quot; height=&quot;1&quot;>

instead of that try this:

<td valign=&quot;top&quot; style=&quot;background:URL(images/nav.jpg) #000000;&quot; width=&quot;160&quot; height=&quot;1&quot;>

i don't have NS on this computer in order to test it, but i'm 80% sure it will work.
 
TheocraticMind,

Thanks for the try. I gave it a shot but the same condition still occurs. Funny, Netscape puts the background color specified in the <td> containing the table into the <td>'s within the table that don't even call for a backgound color. But not until something is placed into the table such as text or graphics. Gosh, I have to say that as a professional web developer &quot;I hate Netscape&quot;.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top