Solved

netscape 4, table and background

Posted on 2002-07-14
6
150 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
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

856 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