I want a div element, in a bottom of window. like a div in bottom page of old facebook.com. or like a chat div of initial facebook.com
+5
A:
You can use position: fixed; bottom: 0px
. But won't work in IE6.
<style type="text/css">
#footer { position: fixed; bottom: 0px; }
</style>
<div id="footer">I am at the bottom of the window</div>
rahul
2010-03-03 13:30:07
thanks, it works
loviji
2010-03-03 13:41:11
There are also few workarounds for IE6 support. Try searching for ie-fixed.htc - the .htc file will force IE to understand the position.
easwee
2010-03-03 13:41:37