Solved

Netscape and table backgrounds

Posted on 1998-09-30
5
225 Views
Last Modified: 2010-04-09
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
0
Comment
Question by:guadalupe
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:chrisbolt
ID: 1838288
Netscape only supports table backgrounds in versions 4.0 and higher. What version of Netscape are you using?
0
 
LVL 8

Accepted Solution

by:
jbirk earned 50 total points
ID: 1838289
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
 
LVL 3

Author Comment

by:guadalupe
ID: 1838290
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
 
LVL 8

Expert Comment

by:jbirk
ID: 1838291
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
 
LVL 3

Author Comment

by:guadalupe
ID: 1838292
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web forms being filled out by bots 4 50
Help to align the buttons in a row 2 43
How to check if a session is disconnected in php 9 31
Do alert on select 6 13
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

809 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