The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to allow a div with a bg-image to go negative left?
Is the 1% of users that could have a smaller resolution really worth it?
I think I’ve found the solution:
Here is the magic: min-width on body and html tag.
html{ min-width:960px; /** <<<—– this ! **/ }
#content{ position:relative; width:960px; height:1126px; margin:auto; background:url(../images/bg.png) repeat-y; }
You can see it there:
http://anju.be/test/solution/
Just remember that IE6 and IE7 don’t support min-width.