100% width bg images not extending on horizontal scroll

前端 未结 4 619
猫巷女王i
猫巷女王i 2020-12-03 17:20

I\'m noticing this issue. I made a quick screen capture to demonstrate: http://dl.dropbox.com/u/904456/2010-06-14_2323.swf

Basically when you have a min-width set an

4条回答
  •  执念已碎
    2020-12-03 18:02

    I managed to solve this issue on gowalla and stackoverflow (it happens to the footer) by adding a min-width to the body element. I think that on your own site though, it would be better to apply it to a wrapper div that encompasses ALL of the page's content (including the footer).

    You will need to set it's value to the minimum fixed width of the content, so if your main content div is set to be 960px wide, then that's probably what you want (but you may need to tweak to account for extra margins/borders etc).

    Here's an example: http://jsfiddle.net/qUyp2/

提交回复
热议问题