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 Table

Status
Not open for further replies.

wood

MIS
Aug 3, 2000
139
CA
I have two tables nested in one table, and the first table is to have an image as the background.

In IE the image shows fine. But in NS, each <tr> tag produces its own tile of the image, and the background image does not display.

Any hints?

Code below:

<table>
<tr>
<td>
<table background=&quot;images/bkg.jpg&quot; width=&quot;150&quot;>
<tr><td>link1</td></tr>
<tr><td> </td></tr>
<tr><td>link2</td></tr>
<tr><td> </td></tr>
<tr><td>link3</td></tr>
</table>
</td>

<td>
<table>
<tr><td>Comming Soon!</td></tr>
</table>
</td>
</tr>
</table>



I have also tried ....

<table>
<tr>
<td>
<table class=&quot;bkg&quot; width=&quot;150&quot;>
<tr><td>link1</td></tr>
<tr><td> </td></tr>
<tr><td>link2</td></tr>
<tr><td> </td></tr>
<tr><td>link3</td></tr>
</table>
</td>

<td>
<table>
<tr><td>Comming Soon!</td></tr>
</table>
</td>
</tr>
</table>

The CSS is:

TABLE.bkg {
background-image: url(images/bkg.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
}

This also works great in IE, but the images doesn't show up in NS.

Thanks,

Beverly
 
NS doesn't support the background property in <TABLE background=. But apparently NS4.x does support the style background-image: url(theurl.gif); in a book I've got but reports that the TABLE tag DOESN'T support the
Code:
background-image: url(theurl.gif);
If in doubt I always go with blooberry.com it is a darn good site.

Klae

You're only as good as your last answer!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top