Jump to content

[SOLVED] Strange IE Problem: Background Image Repeats Too Far Down


Recommended Posts

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.

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.

 

 

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.