Ok, what I have is a fixed height and width layer in my page that holds the main content. I have a background radial-gradiant that needs to stay fixed to the top left corner of the layer... even when the content is scrolled up and down.
This works in I.E., but in Netscape/FireFox the last attribute [background-attachment: fixed] repositions the background from the top-left courner of the browser WINDOW and not the LAYER.
Now, simply by removing the bg-attachement property, the backgound-image displays as it should in NS 7.1/FF...
...but now in IE the image scrolls up with the content of the division.
How do I get the background to behave correctly in both sets of browsers?
This works in I.E., but in Netscape/FireFox the last attribute [background-attachment: fixed] repositions the background from the top-left courner of the browser WINDOW and not the LAYER.
Code:
.content
{
width: 620px;
height: 325px;
background-color: navy;
background-image: url(/IMAGES/body_gradient.jpg);
border: 2px solid #9999cc;
margin-left: 38px;
color: white;
overflow: auto;
padding: 10px 40px 40px 40px;
background-repeat: no-repeat;
background-position: 0px 0px;
background-attachment: fixed;
}
Now, simply by removing the bg-attachement property, the backgound-image displays as it should in NS 7.1/FF...
Code:
.content
{
width: 620px;
height: 325px;
background-color: navy;
background-image: url(/IMAGES/body_gradient.jpg);
border: 2px solid #9999cc;
margin-left: 38px;
color: white;
overflow: auto;
padding: 10px 40px 40px 40px;
background-repeat: no-repeat;
background-position: 0px 0px;
}
How do I get the background to behave correctly in both sets of browsers?