-1

I am working on the following site: buzzspherefilms.site40.net and the footer is not showing as expected in IE. It works fine with Chrome and Mozilla but in IE, the footer is appearing at the bottom of the page. Can anyone see why? Also, any help on implementing this into a sticky footer would be great.

Thanks

user1060187
  • 957
  • 5
  • 12
  • 28

2 Answers2

1

The short answer is that you need to adjust the margin-top on #container.

In your layout, you have two fixed elements, header and navbar, with a combined height of 120px and 40px respectively.

If you set margin-top: 160px on container, the layout will work consistently across the browsers.

IE calculates the auto top margin differently than the other browsers, which can cause problems.

As for sticky-footers, there are articles on the web on how to do it, so that would be your first step.

jQuery Fix

You are trying to set the container height dynamically using jQuery. The cross-browser issue arises probably because .outerHeight does the math differently in IE.

Comment this out first (you can put it back in later) and try a simple CSS fix.

<script>
    $(document).ready(function() {
       $("#quickSearch").autocomplete({
       source: "quickSearch.php",
       minLength: 2
       });
          $('#container').css('marginTop', $('#header').outerHeight(true) + $('#navbar').outerHeight(true) );

    });
</script>  
Marc Audet
  • 46,011
  • 11
  • 63
  • 83
0

You mention using sticky-footer but it doesn't look like you are using it. Here is the css that allows you to do it. (I just copy and pasted from the site)

* {
    margin: 0;
}
html, body {
    height: 100%;
}
.wrapper {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -142px; /* the bottom margin is the negative value of the footer's height */
}
.footer, .push {
height: 142px; /* .push must be the same height as .footer */
}

src: http://ryanfait.com/sticky-footer/

Jake Zeitz
  • 2,429
  • 3
  • 23
  • 43