Ingo,

On Jan 31, 2006, at 7:05 AM, Ingo Chao wrote:

> Roger Roelofs wrote:
>> Ingo,
>> On Jan 31, 2006, at 4:53 AM, Ingo Chao wrote:
>>> Don Hinshaw wrote:
>>>> The basic page is here: http://66.117.159.181/ 
>>>> for_retailers_contact.php
>>> Centering a bg-img with background-position: center top is  
>>> apparently
>>> different to centering a div with margin: 0 auto 0 auto,  
>>> especially when
>>> the viewport is sized to the width of the bg-img, or smaller.
>> Doesn't the spec say that background images which are centered  
>> will be cropped on either side if the container is smaller than  
>> the image?  Conversely, elements that are centered via margin: 0  
>> auto; remain centered until they are wider than their container at  
>> which point they act as though they were left aligned??
>>
>
> Hmm.
>
> Don's bg image is center/top-positioned with regard to body. It is  
> wider than it looks, there is 20px of green on both sides.
> http://66.117.159.181/images/bkg_home.gif
> w:800px h:200px
>
> The browsers are showing a different behavior when the viewport  
> gets smaller than 800px:

This same question came up a week or so ago and the resolution was  
the same.  Put the bg image on the container centered with margin: 0  
auto; instead of on its parent.

Roger,
-- 
Roger Roelofs
[EMAIL PROTECTED]



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to