[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."

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."

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.

Is there anyone who can clarify this for me further?

Check out the alpha of my current site


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