The
The Ultimate CSS Reference 314
result is that fixed only really works when the background-image is applied to the
html or body elements, since they??™re effectively equivalent to the viewport. When
a background-position value of fixed is applied to other elements on the page, it
will fix the image to that element, not the viewport.
Internet Explorer version 7 implemented the scroll value incorrectly in cases where
it??™s used on a container that has a scroll mechanism??”when overflow is set to a
value other than visible. In such cases, the background-image scrolls with the
content when it should in fact remain in view at the position specified. Internet
Explorer versions 6 and below exhibit the same behavior as IE 7 in this respect;
however, using the value fixed instead of scroll will cause IE versions 6 and below
to exhibit the behavior defined in the specifications for scroll.
Internet Explorer for Windows versions up to and including 7 will only apply the
background from inside the border??™s edge when the element in question has a layout
(p.
Pages:
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471