Background positioning - CSS
Posted
by Kevin
on Stack Overflow
See other posts from Stack Overflow
or by Kevin
Published on 2010-04-26T23:12:30Z
Indexed on
2010/04/27
1:33 UTC
Read the original article
Hit count: 296
css
|internet-explorer
Please see attached screenshot

The background is a bit off in both IE and chrome (although it was working before? hence the exact numbers??), although in ffox it looked allright..
Here is the code for what I thought was very straight forward... am I missing something?
#wrapper{
width:100%;
overflow:hidden;
position:relative;
background:url(../images/body-bg.jpg) no-repeat ;
background-position: -20px top;
}
And an IE fix
#wrapper{ background-position: -21px top; }
© Stack Overflow or respective owner