On Jul 24, 2008, at 9:38 AM, RePost wrote:
> Philippe Wittenbergh wrote:
>> On Jul 24, 2008, at 2:25 AM, RePost wrote:
>>
>>
>>> David Hucklesby wrote:
>>>
>>>> I think Philippe is suggesting yet another DIV. Although it sounds
>>>> like a case of "divitis," I often find a need to add an extra 100%
>>>> wide DIV around the entire content for IE7's sake. When IE7 is
>>>> "zoomed" the background-image on BODY does not resize. Putting
>>>> the background-image on this extra DIV takes care of that bug, too.
>>>>
>
> I missed a key part of David's recommendation -- setting 100 percent
> width for the background image in the wrapper div.
>
> Disappointingly, though, the background image still shifts when used
> in
> the wrapper div, just as it shifts when used in the body. Any idea why
> this might occur?
You missed a part of my original answer, I guess…
set the width of the outer wrapper to something that fit your image,
and set the margins to '0 auto'.
I suggested
div {
width 980px /* eyeballing, the width of your image -- adjust to taste
but keep it an even number */
margin: 0 auto;
background: url(path/to/image.png) 50% 50% repeat-y;
}
The 980px width is what is needed to show those 'drop-shadow' things.
Philippe
---
Philippe Wittenbergh
http://l-c-n.com/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/