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!

Hi out there, Having a problem.

Status
Not open for further replies.

mleahy

Technical User
Feb 24, 2003
19
IE
Hi out there,

Having a problem.

I have a back image in a cell with a table in that cell. In Netscape this table repeats the image in each cell.

Does anyone know how to stop this?

Marie
 
I assume you have (all unnecessary bits omitted):
Code:
   ...
   <style type=&quot;text/css&quot;>
      td.WithImage {
         background-image: url('myimage.gif');
      }
   </style>
   ...
   <table>
      ...some <tr>s
      <tr>
         ...some <td>s
         <td class=&quot;WithImage&quot;>
            <table>
            ...stuff
            <table>
         </td>
         ...more <td>s
      <tr>
      ...more <tr>s
   </table>
What you need is:
Code:
   ...
   <style type=&quot;text/css&quot;>
      td.WithImage {
         background-image: url('myimage.gif');
         background-repeat: no-repeat;
         /* and, optionally */
         background-attachment: fixed;
         background-position: top left;
      }
   </style>
   ...
   <table>
      ...some <tr>s
      <tr>
         ...some <td>s
         <td class=&quot;WithImage&quot;>
            <table>
            ...stuff
            <table>
         </td>
         ...more <td>s
      <tr>
      ...more <tr>s
   </table>
That should do it.


________________________________________
[hippy]Roger J Coult; Grimsby, UK
In the game of life the dice have an odd number of sides.
 
Try:
or

Plenty of code examples if you search for &quot;netscape background image cell table&quot;.

Basically add an outer table around your existing table... have a read of the above notes. ;-)

Pete.


Lotus Notes Web Developer / Aptrix (LWWCM) Consultant
w: e: Pete.Raleigh(at)lclimited.co.uk
 
Hi,
Thanks for all the help. Figured out the best way to do it is insert an outer table around your existing table 1row x 1col and then in each cell inyour nested table enter background=&quot; &quot; into the td code.

This works a treat.

Thanks for you help guys.

Down with netscape
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top