Solved

netscape 4, table and background

Posted on 2002-07-14
6
161 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
Independent Software Vendors: 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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
SVG and IE11 2 36
How do I update select listbox after search 2 51
Can't get video to center on page 2 46
CSS styling problem 3 28
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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 embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

738 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