Huendin
07-02-2010, 06:21 AM
Whenever, I resize the browser to a shorter width than the banner, it pushes the background image off to the left of the screen. I've experimented with a lot of different css positioning values, but I keep managing to screw it up more. Here's my default code that centers everything just how I want. Could I get help with finding css values that will prevent the background image from being pushed off the screen in my #banner div?
You can see an example of what I'm talking about here:
http://www.kinkyintentions.com
body {
text-align: center;
background-color: #b2b2b2;
}
#banner {
background-repeat: no-repeat;
background-image: url(images/bannerbg.jpg);
background-position: center center;
padding: 1em;
height: 225;
width: 940;
top: 30px;
}
You can see an example of what I'm talking about here:
http://www.kinkyintentions.com
body {
text-align: center;
background-color: #b2b2b2;
}
#banner {
background-repeat: no-repeat;
background-image: url(images/bannerbg.jpg);
background-position: center center;
padding: 1em;
height: 225;
width: 940;
top: 30px;
}