Code Snippet
Fixed Positioning in IE 6
* { margin:0; padding:0; }
html, body {
height: 100%;
}
body #fixedElement {
position:fixed !important;
position: absolute; /*ie6 and above*/
top: 0;
right: 0;
}
#page-wrap {
width: 600px;
margin: 0 auto;
font: 16px/2 Georgia, Serif;
}The 100% height on the body and html stuff is in case you want to do fixed positioning along the bottom edge of the browser window.
Look like doe’t work on IE6
yeah he’s right
or you do it over expressions.. like this:
this is for position fixet on TOP
This tutorial saved my life. I didn’t think this was possible in IE6. Thank you, thank you, thank you.
how does it worked for you?
Sorry. Not working in IE6
Not working for me too
It seems not working. Also, Is there any way to achieve the position:fixed effect for a div which have to be kept some distance from bottom , and not from top.
Even, a jQuery solution will do. Thanks in advance.
still looking for it…
As FJ mentioned (10/25/2009) it is possible to do it with CSS expression, but with some extra hack to get a smooth scrolling:
http://www.css-101.org/fixed-positioning/05.php
DigWP
A book and blog co-authored by Jeff Starr and myself about the World's most popular publishing platform.
Quotes on Design
Design, like Art, can be an elusive word to define and an awfully fun thing to have opinions about.
HTML-Ipsum
One-click copy to clipboard access to Lorem Ipsum text that comes wrapped in a variety of HTML.
Bookshelf
Hey Chris, what books do you recommend? These, young fertile mind, these.