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

Cross-browser table backgrounds

Status
Not open for further replies.

msteggo

Programmer
Oct 27, 2000
52
0
0
US
I want to have a jpeg background in one cell of a table and have solid color backgrounds on others. What i have listed works in ie5.5 but not in NS4.76. How can i cross-code this result? And if possible, how universal is the solution?. Looking for the largest target audience...Help!

P.S. The far left cell with the desired jpeg background has fixed dimensions, but the right will be stretchy...

Code:
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; background=&quot;images/home_pic600.jpg&quot;>
  <tr>
    <td rowspan=&quot;3&quot; height=&quot;600&quot; valign=&quot;top&quot; align=&quot;right&quot;>
      <img border=&quot;0&quot; src=&quot;images/spacer.gif&quot; width=&quot;367&quot; height=&quot;1&quot;><br>
      <img src=&quot;images/spacer.gif&quot; width=&quot;1&quot; height=&quot;300&quot;><br>
      <img src=&quot;images/nav_res.gif&quot;><br>
      <img src=&quot;images/nav_why.gif&quot;><br>
      <img src=&quot;images/nav_comm.gif&quot;></td>
    <td width=&quot;100%&quot; colspan=&quot;2&quot; bgcolor=&quot;#800000&quot;> </td>
  </tr>
  <tr>
    <td colspan=&quot;2&quot; bgcolor=&quot;#000000&quot;> </td>
  </tr>
  <tr>
    <td bgcolor=&quot;#000000&quot;> </td>
    <td bgcolor=&quot;#000000&quot;> </td>
  </tr>
</table>

Here is the page:
Any help would be greatly appreciated...Thanks!
Mike
 
Hi, Mike,

It's working for me in Netscape and IE. It looks like maybe you fixed it by taking the background image out of the table tag.

As you probably know by now, the background image in the table tag could be a problem with Netscape. It will frequently place that image them in all of the cells of the table.

bests, Art
 
Art,
Thanks...
Just moved the background reference to the <td> instead of the <table>...
Do you about any problems or incompatabilities with this method?
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top