Solved

netscape 4, table and background

Posted on 2002-07-14
6
157 Views
Last Modified: 2010-04-09
Hi
I have this code
Work fine with IE but not with netscape 4....
it simple... I want only add a background to my table... in netscapoe 4 that begin the background in each TD... maybe someone have any idea?

<table border="0">
    <tr>
        <td background="background.jpg" valign="bottom">
            <table border="0" width="302" height="66">
                 <tr>
                     <td width="25%" height="62">test1</td>
                     <td width="25%" height="62">test1</td>
                     <td width="25%" height="62">test1</td>
                     <td width="25%" height="62">test1</td>
                 </tr>
            </table>
        </td>
    </tr>
</table>
0
Comment
Question by:Yard072999
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7152111
usage of background atribute in other tags than body was never HTML standard, even a lot of browsers aloow it, w3c has marked it as "depricated". You should use CSS instead:

  <td style="background-image:url(images/book-big.jpg);background-repeat:no-repeat;">

AFAIK, Netscape 4.x does not support CSS in tables at all.
0
 
LVL 19

Accepted Solution

by:
webwoman earned 100 total points
ID: 7152232
Or do it the way everybody else does...

Make a one-cell table to contain your MAIN table, give that CELL a background image, and in all the cells of your main table use
td background=""

DO NOT use a graphic editor, or if you must, don't freak when it doesn't display the way you think. It WILL work in the browser -- both of them. ;-)
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7152478
hmm. im not sure that the height attribute in supported by nn4. that can potentially cause problems.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 19

Expert Comment

by:webwoman
ID: 7152528
It's not that.. it's the mixing of pixels and percentage. Don't do that within one table. You can have a table set in pixels, and another table in that set in percentages, but not both in the same table.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7152609
it's Netscape 4.x !
it does not support background in tables (and this is not a bug, just implemented as w3c recommends, years ago ...)
0
 

Author Comment

by:Yard072999
ID: 7152806
For that working  always just remove all the style="border-collapse: collapse". without that it working fine in netscape :)

Thx you very much
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question