Fluoresce Posted September 28, 2009 Share Posted September 28, 2009 I've got this very simple layout: <div id="container"> <div id="top"></div> <div id="middle"></div> <div id="bottom"></div> </div> As you can see, it's basically 3 divs (called Top, Middle and Bottom) enclosed within a parent div (called Container). I have added background images to these divs to produce a box. A non-repeating background image for Top produces the top of the box, a non-repeating background image for Bottom produces the bottom of the box, and a thin, horizontal image vertically repeated down Container produces the side borders of the box. The problem is, this vertically repeated thin image also appears below the Bottom div in Internet Explorer. Anyone know how I can fix this? Here, take a look: Miracle Of Pregnancy Scroll all the way to the bottom with Internet Explorer and you'll see the image. Quote Link to comment https://forums.phpfreaks.com/topic/175748-solved-strange-ie-problem-background-image-repeats-too-far-down/ Share on other sites More sharing options...
saltedm8 Posted September 28, 2009 Share Posted September 28, 2009 looks like its the bottom of the container try talking the footer out of the container and placing it under the container instead Quote Link to comment https://forums.phpfreaks.com/topic/175748-solved-strange-ie-problem-background-image-repeats-too-far-down/#findComment-926164 Share on other sites More sharing options...
sticks464 Posted September 28, 2009 Share Posted September 28, 2009 Removing this line makes it go away. <img src="http://b3774mhdj4yo3y9et5taqg1z5s.hop.clickbank.net/?tid=9490" alt="" width="1px" height="1px" /> I don't see this 1px by 1px serving any purpose but it follows the footer image and makes the container extend. You would be better off by re-thinking your layout a bit and applying the container.gif background to the main div instead of the container div. Quote Link to comment https://forums.phpfreaks.com/topic/175748-solved-strange-ie-problem-background-image-repeats-too-far-down/#findComment-926365 Share on other sites More sharing options...
Fluoresce Posted September 28, 2009 Author Share Posted September 28, 2009 Removing this line makes it go away. <img src="http://b3774mhdj4yo3y9et5taqg1z5s.hop.clickbank.net/?tid=9490" alt="" width="1px" height="1px" /> I don't see this 1px by 1px serving any purpose but it follows the footer image and makes the container extend. You would be better off by re-thinking your layout a bit and applying the container.gif background to the main div instead of the container div. Thanks, Sticks464! It was that bit of code. This issue is now solved. Note that the bit of code that you pointed out is for dropping a cookie. I tried vertically repeating the background image down the Main div first, but it gave me margin collapse problems. Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/175748-solved-strange-ie-problem-background-image-repeats-too-far-down/#findComment-926505 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.