Netscape and table backgrounds

Ok either I´m an idiot or something is wrong but for the life of me I can't get a table to use a graphic background. Either it just isn't there or if it is the cells which contain anything erase the background for that cell!!!!!!!
Of course MS IE works perfectly (I hate that, I prefered NS but now not so much as nearly everything works or is easier in IE.  Anyway can anyone help? Josh?

Thanks
LVL 3
guadalupeAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jbirkConnect With a Mentor Commented:
chrisbolt is right.  You need to have some version of Netscape 4.
The following code works for me:

<!--The background of an entire table will tile the image throughout the entire table, but not in the cellspacing and border areas.-->
<TABLE background="Hdhp.gif">
<TR><TD bgcolor="#AAAAAA">
Testing.  In this row, I'm testing to see if it will print
a bgcolor only.
</TD></TR>

<!--In this case the background image is tiled within this cell only-->
<TR><TD background="Hdhp.gif">
Testing.  In this row, I'm testing to see if it will print
a background image.
</TD></TR>

<!--In this case the bgcolor is overriden by the background image and displayed as above.  But if some error occurs (for instance backgournd image is not supported, or it's not transmitted properly, or doesn't exist), then the color is loaded instead.-->
<TR><TD bgcolor="#444444" background="Hdhp.gif">
Testing.  In this row, I'm testing to see what it will print
if a background image AND a background color is specified.
</TD></TR>
</table>

So if for some reason it's not working for, it could be the way you are using the code, or it could be your browser is too old, or it may even be a problem with the image.

If you can't fix it after this, please post it on the web if possible, and I will take a look.

Good luck!
-Josh
0
 
chrisboltCommented:
Netscape only supports table backgrounds in versions 4.0 and higher. What version of Netscape are you using?
0
 
guadalupeAuthor Commented:
Ok I knew that about NS but I´m viewing this in NS 4.05 and 4.06 and neither one will behave.  The page is at http://www.amcintl.com/Technology/tecnologia2.htm.  A cloud graphic should appear one the right side of the visible table.  If you check it in MS its there but not in NS 4.X.  (PS I know there are some broken image links on the left side but these are of no concern!)

Thanks !!!!!
0
 
jbirkCommented:
OK, this problem is wierd.  Anyway,netscape IS actually displaying your image.  The problem is that netscape starts its tyling of the background image over for every cell.  And you image has a large section of white at the top.  So all that's getting shown is the white part at the top of the image! :(  I tried to nest an extra table around that table with the background image so that it would hopefully not be retiled like it was, and again to no avail.  Same problem.  So I tried moving the background to the td cell which holds the nested table, and again same problem only this time it showed the image ok in the small amount of space to the right and underneath the nested table.  Well, anyway, the solution is to not use your nested table.  All you have in it is a bunch of images which are stacked on top of each and that can easily be achieved with a simple <BR> between each one.
Sooooo changing the second half of your main table (the right cell) to:
    <td background="Clouds2.gif" valign="TOP" width="65%" height="449">
<img src="blank_text.gif" width="300" height="40" name="text1">
<br><img src="blank_text.gif" width="300" height="40" name="text2">
<br><img src="blank_text.gif" width="300" height="40" name="text3">
<br><img src="blank_text.gif" width="300" height="40" name="text4">
<br><img src="blank_text.gif" width="300" height="40" name="text5">
<br><img src="blank_text.gif" width="300" height="40" name="text6">
<br><img src="blank_text.gif" width="300" height="40" name="text7">
    </td>

Will solve your problem.  AND it works in both 4.x browsers.

I wish netscape would have implemented this a little more intelligently...  oh well.

Best of luck!
Josh
0
 
guadalupeAuthor Commented:
Josh Thanks!!!!  Your my idol.  I was feeling pretty stupid there for a while.  I thought, "I've been asking all these deep perl, java, dhtml questions and <i can't make a simple table work."  Well I feel a little less stupid though I must repeat my loyalty to NS is quickly dissapearing.   Thanks again!

-Jason
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.