Solved

Netscape and table backgrounds

Posted on 1998-09-30
5
200 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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" …
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

758 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

22 Experts available now in Live!

Get 1:1 Help Now