PDA

View Full Version : IE 7 background-position: bottom


m1a2x3x7
01-19-2009, 09:35 PM
Here's my css: #wrapper { background-image: url(images/bodyBg.png); background-repeat: no-repeat; background-position: left bottom; height: 800px; width: 800px; }The wrapper is 800px x 800px my background image is 800px by 500px. I want the background to be positioned at the bottom works fine in everything except ie7.

What am I doing wrong?

domedia
01-20-2009, 12:16 AM
I think you just have to switch left and bottom, so bottom is defined first.
Here in the shorthand version:
#wrapper {
background: url(images/bodyBg.png) no-repeat bottom left;
width: 800px;
height: 800px;
}