...

View Full Version : Firefox Shifts my layout



phasetrip
01-11-2008, 09:19 PM
Iím having the following problem with FIREFOX and surprisingly not with IE. When I have something scrolling it seems to shift the page a pixel to the left. When maximized it looks fine, which makes absolutely no sense. This is driving me nuts, has anyone run into this problem?

Links:
http://www.camelbackdisplays.com/templates/cbd.html
http://www.camelbackdisplays.com/templates/cbd2.html

CSS:
http://www.camelbackdisplays.com/css/stylesheet.css

Any help would be really appreciated.

Excavator
01-11-2008, 10:09 PM
Hello phasetrip,
It's FF's way of centering your background. Depending on the width of your browser there may be an even or odd number pixels to center.
So it can move back and forth 1px while your resizing the width.

A few other things...
body {
margin: 0 auto;
margin-left: auto;
margin-right: auto; background: url(../images/top-header-bg.jpg) center repeat-y #797565;
padding:0px;
}

#container {
margin: 0 auto;
text-align:center;
width: 943px;
}

That bit in red up there. Your body is the full width of the browser, so nothing to center... especially nothing to center twice.

Check my suggestion and links about validating in my sig.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum