Solved

netscape 4, table and background

Posted on 2002-07-14
6
141 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Tool to Build Android and iOS App 3 73
Tags from access to excel 3 38
WordPress Themes 10 41
how to avoid redundand ajax calls 5 28
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
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 code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
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 …

815 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now