S
SATAN
I'm making a page and using CSS to make the background image
fixed, specifically:
body {background-attachment: fixed; background-image: url(back.gif);}
I checked the page on a couple of browsers and it seems that
Netscape 4.8 (and I would imagine earlier) doesn't recognize the
CSS code and shows nothing for a background image.
My question is would it be valid to *ALSO* specify the background
image in the body tag thereby making it "backwards compatable" for
older browsers that don't recognize the CSS?
I tried it and it seems to work; NS 4.8 shows the background image
and scrolls it with the page and IE 5.5 as well as Opera 7.4 both
show the image as fixed.
Does CSS normally override any "ordinary" HTML attributes in CSS
aware browsers (as it seems to in this example)?
Is doing what I did in this example considered valid HTML?
Thanks!
fixed, specifically:
body {background-attachment: fixed; background-image: url(back.gif);}
I checked the page on a couple of browsers and it seems that
Netscape 4.8 (and I would imagine earlier) doesn't recognize the
CSS code and shows nothing for a background image.
My question is would it be valid to *ALSO* specify the background
image in the body tag thereby making it "backwards compatable" for
older browsers that don't recognize the CSS?
I tried it and it seems to work; NS 4.8 shows the background image
and scrolls it with the page and IE 5.5 as well as Opera 7.4 both
show the image as fixed.
Does CSS normally override any "ordinary" HTML attributes in CSS
aware browsers (as it seems to in this example)?
Is doing what I did in this example considered valid HTML?
Thanks!