View Full Version : Netscape 6 and background-image
jeorg
08-07-2002, 03:06 PM
this code doesn't work with netscape 6
<code>
background-image: url(../images/fond/frise.gif);
background-position:0px 0px;
background-repeat: repeat-x;
background-attachment: fixed;
</code>
and of course it works with iE
HOW can you put a background-image for this grrr...... Netscape !???
thank you
boxer_1
08-07-2002, 03:28 PM
Hi, assuming you uploaded the image you want to use to the proper directory reflected in the path you posted, try removing the 2 dots and the slash before /images/fond/frise.gif
Change this:
url(../images/fond/frise.gif);
To this:
url("images/fond/frise.gif");
Any help?
Edit: Also, forgot to mention, in addition to removing the dots and the forward slash, you should really quote (url("path");) the path (as shown above).
beetle
08-07-2002, 03:33 PM
Why are you attaching these CSS properties to? a class? If so what HTML object are you assigning the class to? You may need background-attach.
applesauce
08-07-2002, 04:01 PM
he's right. put the background stuff in your body tag.
boxer_1
08-07-2002, 06:00 PM
Originally posted by applesauce
he's right. put the background stuff in your body tag.
Correct of course. I was assuming that Jeorg had his code set-up like this:
<style type="text/css">
body {
background-image: url(../images/fond/frise.gif);
background-position:0px 0px;
background-repeat: repeat-x;
background-attachment: fixed;
}
</style>
If as above, should be like this:
<style type="text/css">
body {
background-image: url("images/fond/frise.gif");
background-position:0px 0px;
background-repeat: repeat-x;
background-attachment: fixed;
}
</style>
Perhaps the assumption was premature ;) ? We'll have to wait and see what Jeorg is trying to apply this backgound style to I guess :thumbsup: .
jeorg
08-07-2002, 11:40 PM
yes boxer is right
but impossible to find why it doesn't work
(it works with IE)
<table class="tb_frise"><tr><td class="frise"> </td></tr></table>
and with or without quote it doesn't wotk for netscape
and without ../ IE cannot find it too
thank you fo hellping
BrainJar
08-08-2002, 11:03 PM
I'll hazard a guess and say that your table is somewhere down on your page.
With "background-attachment: fixed", the background position should be fixed to the viewport (the browser window). With a position of 0px, 0px, that means in the upper-left corner of the window, no the upper-left corner of the table or table cell.
The problem is that IE positions fixed backgrounds incorrectly. Netscape is actually doing it right, so you can't see the background because it's positioned outside the area covered by the table. To prove it, remove the "background-repeat: repeat-x" so the background will fill the browser window. It should then appear in the table in Netscape.
Take a look at http://www.meyerweb.com/eric/css/edge/complexspiral/demo.html and read the explanation. Be sure to try the page in IE and Netscape 6.
jeorg
08-09-2002, 05:22 AM
yes If I remove fixed it works for nnetscape too
thank you !
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.