tags:

views:

1298

answers:

5

I need a footer in the bottom of a page, which is overlaps any content that will make the page scroll. Also, when scrolling down, it the footer still need to stay there.

Is this possible with css only working for IE6+ ?

A: 

http://www.w3schools.com/Css/css_positioning.asp

try to found that out maybe there is what you looking for

x4tje
something with the z-index will work
x4tje
A: 

EDIT : because IE6 doesn't support position:fixed;, here's a good workaround.

Moayad Mardini
position: fixed is not supported by IE6, so this doesn't work.
peirix
OK, thanks for the correction, voted your workaround up...
Moayad Mardini
+1  A: 

Do a quick google search for CSS footer, and you'll find plenty solutions. But most solutions seem to work like this:

<body>
  <div id="wrapper">
     Main content
  </div>
  <div id="footer">
     Footer content
  </div>
</body>

and then applying css:

body, html { height: 100% }
#wrapper { height: 100% }
#footer {
  height: 150px;
  margin-top: -150px;
}
peirix
+1  A: 

Recently I used the following style:

div.BottomDisclaimer
{
  z-index:100;
  position:fixed;
  bottom:0px;
  border-top-style: solid;
  border-top-width: 1pt;
  padding-top: 4px;
}
a programmer
You can fold the border-top-* declarations into "border-top: 1pt solid". (Also, might you be better off using pixels?)
Paul Fisher
same goes here as for Moayad's sollution, IE6 doesn't support "position:fixed", so this will only work on IE7+
peirix
A: 

For IE6, it's not possible to use position:fixed. You can use Dean Edwards' IE7 library to get that behavior if you want.

Paul Fisher