...

View Full Version : IE Background Positioning



marcus1060
07-29-2007, 05:59 AM
For some reason some people using IE (not all people, only some) get a background that should be positioned to the center of screen, one pixel to many to the right.
I tried to fix this by using PHP to adjust it for IE users, but the problem is not everyone gets the initial mess up.
This is making for a very difficult situation to fix.
Any help would be great.

Here is the site: http://bravofleet.com/

Here is a screen shot: http://im.noveis.net/ieglitch.jpg
Before I tried to resolve the issue, the grey area would be the on right side.


Thank you.

marcus1060
07-30-2007, 05:53 AM
Anyone?

_Aerospace_Eng_
07-30-2007, 06:41 AM
Hopefully this would explain some things. http://www.positioniseverything.net/bg-centering.html

Also no need to bump your thread. Its the weekend. There aren't that many people online during the weekend. It could take days sometimes to get a response.

marcus1060
07-30-2007, 09:19 AM
Sorry for bumping, I was just frustrated with having a site that was live, that some people couldn't see properly.

The site you linked to was vauge on the resolution, but fortunately I was able to make it work with this:

body {
background:#151515;
color:#ffffff;
font-family:verdana;
font-size:12px;
width:938px;
margin:0 auto 0 auto;
}

#background-wrap {
position:relative;
top:0;
left:0;
background:url(images/bg.png) top center repeat-y;
}

#content-wrap {
width:930px;
margin:0 auto 0 auto;
text-align:left;
}


Hopefully this will help someone else out in the future.

Edit:
Now it's I have the problem that the background isn't extending to the very bottom of the browser.
Any suggestions?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum