[thelist] CSS: implementation, who is right?
Frank
framar at interlog.com
Fri Aug 23 04:55:01 CDT 2002
There seem to be two differing opinions of how the css1
background-attachment:fixed is implemented, and I'm not sure
which one it is.
According to Opera website:
"Positioning of background images is relative to the element
box, not the window. This means that in Opera, a image placed
with body{background-position: center center} will be roughly
in the middle of a page, not in the middle of the window."
http://www.opera.com/docs/specs/#css
According to Eric Meyer :
"According to CSS, any background image that is "fixed"
using background-attachment: fixed; is fixed with respect
to the viewport-- not the element with which the image
is associated."
http://www.meyerweb.com/eric/css/edge/complexspiral/demo.html
The CSS1 spec leaves me unclear.
5.3.5 implies that a background attachment is relative to
the canvas, and 5.3.6 implies that it's relative to the container.
http://www.w3.org/TR/REC-CSS1#background-attachment
Is there anyone who can clarify this for me further?
Check out the alpha of my current site
http://www.frankmarion.com
in both Opera and NS6. (I'm not done the styles/switch yet,
so it still breaks under IE and ns4.x)
--
Frank Marion,
framar at interlog.com
More information about the thelist
mailing list