take a look at this example code:
Now, my side menu is larger in height than my content. When there are no images in #content then the footer sits nicely below the side menu, where (of course) I want it - but when I add the images as indicated in the code, the footer cuts the side menu short and sits directly below the last <p> tag in #content. As soon as I hover over my side menu, the footer leaps to where is should be, at the bottom of the page.
This only happens in IE - does anyone know whats going on?
Thankyou
Calum
Code:
<style>
#main-content {
width: 760px;
}
#side-menu {
float: left;
width: 150px;
}
#left-image {
float: left;
}
#right-image {
float: right;
}
</style>
...
<div id="main-content">
<div id="side-menu">
<ul>...<li>...</li>...</ul>...(my side menu)
</div>
<div id="content">
<p>hello...blah blah</p>
<img class="left-image" src="myimage1.jpg" alt="blah" />
<p>hello...blah blah</p>
<img class="right-image" src="myimage1.jpg" alt="blah" />
<p>hello...blah blah</p>
</div>
</div>
<div id="footer">
<p>footer stuff...</p>
</div>
Now, my side menu is larger in height than my content. When there are no images in #content then the footer sits nicely below the side menu, where (of course) I want it - but when I add the images as indicated in the code, the footer cuts the side menu short and sits directly below the last <p> tag in #content. As soon as I hover over my side menu, the footer leaps to where is should be, at the bottom of the page.
This only happens in IE - does anyone know whats going on?
Thankyou
Calum