Yet another Netscape Question....

liunx

Guest
CSS reads:

<style type="text/css">
background-image: url('background.gif');
background-repeat: repeat-y;
background-position: 50% 50%}

</style>

Then:
<body style="background-image: url('images/background.gif')" etc etc >

Background image (1400 pixels wide by 1 pixel tall) appears centered in IE but not Netscape.

Ideas on this one?What version of Netscape?Tested in 4.7x (I know... ..ancient)....

EDIT -
To me it doesn't really matter that it functions completely as most of the people who are going to check out the page will be viewing it in IE.

The image is so wide because it has a centered section that allows the middle background to appear one color while the sides are a different color. Therefore, with the main table centered and the background cooresponding as "centered" it gives the page a certain "look" that I really like. But I tested it in Netscape and it doesn't work in Netscape, unfortunately.

So I thought I would turn to experts here...

At this point I'm not going anywhere unless I can resolve the issue. So any advice at all appreciated. Is there another way to center a background image? I think I can get both Netscape and IE to repeat the image fine so I don't necessarily have to reley on the Y axis or any of the other code (admittedly stolen)...

Thx!!!.NS 4.x ignores background-position in CSS styles.

There is an interesting work-around at <!-- m --><a class="postlink" href="http://www.webreference.com/dhtml/diner/bgresize/bgresize2.html">http://www.webreference.com/dhtml/diner ... size2.html</a><!-- m --> that might give you some alternate ideas. It doesn't center the image, it resizes it to fit the window.

Another good link is <!-- m --><a class="postlink" href="http://webreview.com/style/css1/charts/mastergrid.shtml">http://webreview.com/style/css1/charts/mastergrid.shtml</a><!-- m --> for CSS1 support.Another option is to not bother too much with it. NS 4.x users are getting fewer and fewer by the day, many of them converting to the NS 6-7 series, which in regard to CSS is by far the best browsers out there.

Thus just make sure the page works well on NS 7 (if it doesn't look OK you have most likely made a coding error).That's exactly what I decided to do. I guess I'm one of the few Netscape 4.7 guys out there...!

I chose to use it because I use a program called Netscape Composer that used to come with Netscape for free. It's what I learned to build web sites on and is actually *incredibly true to basic .html. So add in a little code (and the fact that you are looking at the page more or less how it will finally appear - as you are editing), and it turns out pretty well I think...

Thanks for all for all of the advice. I'll check it on NS 6 and 7 tomorrow.There is a website builder in NS 7 too (I think, at least it's there in Mozilla <!-- w --><a class="postlink" href="http://www.mozilla.org">www.mozilla.org</a><!-- w --> )It's always a better idea to have a site that is viewable in any browser. Make sure the info is there for all, while the unnecessary aesthetics work for most and if they don't, hide them for the specific offending browsers.

It doesn't matter a bit to the users of your pages which browser you are using. It's a good idea to have the five or ten most popular browsers installed to test your pages.The Netscape and Mozilla Composers have a doctype(4.01 Trans.), but they don't actually point to a dtd, a common error in web design. You can check out Textpad and Edit Plus for some better text editors. Textpad's evaluation period is loosely done, so you can basically use it for free. Not that you should. :-) I actually put down the $30 for Edit Plus and I have no complaints so far.Ultra Edit is supposed to be great, but I haven't tried it yet. I just downloaded it though.
 
Back
Top