vid401t
06-06-2007, 04:59 PM
Hello everyone,
I have a weird situation.
I have a body Div in which no height can be defined, so it will stretch to the space provided.
It is inbetween a header and footer div.
Part of the CSS I have for it is this:
position: fixed;
top: 157px;
bottom: 51px;
overflow: auto;
width: 100%;
background: #dededb
*(157px being the top banner and 51px being the footer)
This works beautifully in Firefox, as it sees the 51px, the footer, as the bottom and creates a scroller for the body before the footer.
However, in IE, if you don't define a height, bottom:51px does nothing and the content stretches down all the way until the content ends, past the footer, instead of creating a scroller before it.
Is there a fix for this in IE?
I have a weird situation.
I have a body Div in which no height can be defined, so it will stretch to the space provided.
It is inbetween a header and footer div.
Part of the CSS I have for it is this:
position: fixed;
top: 157px;
bottom: 51px;
overflow: auto;
width: 100%;
background: #dededb
*(157px being the top banner and 51px being the footer)
This works beautifully in Firefox, as it sees the 51px, the footer, as the bottom and creates a scroller for the body before the footer.
However, in IE, if you don't define a height, bottom:51px does nothing and the content stretches down all the way until the content ends, past the footer, instead of creating a scroller before it.
Is there a fix for this in IE?