Don Hinshaw wrote:
> I have a background image on my body tag that is ostensibly the same
> width as the DIV that contains the main body of text and sits partially
> on top of the background image.
> The problem is that when I resize IE/Win (and Opera 8.5) to right around
> 850px wide, the DIV becomes i pixel narrower and the background image
> peeks out along the right edge creating an unsightly line. Smaller and
> larger viewports cause the line to disappear.
>
> The basic page is here: http://66.117.159.181/for_retailers_contact.php
The problem does show up in Safari, IEMac, Opera9Mac, too.
Actually, at around 800px, which would be the width of your
background-image.
In my IE/Win, the problem is present regardless of the width.
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.
It so happens that you have another margin-centered div #wrap, so I
think you could crop your image and position it at left top.
#wrap { margin: 0 auto; text-align: left; width: 760px;
background: url(bkg_home.gif) no-repeat -20px top; }
Ingo
--
http://www.satzansatz.de/css.html
______________________________________________________________________
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/