Alex Barber | Digital Artist

time to push the pixels

IE6 position:fixed

From http://snipplr.com/view/2952/ie6-fixed-position-fix/

You can use XHTML 1.0 Transitional too. By using the “important!” declaration, you don’t need an conditional comment anymore:

* { margin:0; padding:0; }
html, body {
    height: 100%;
    overflow:auto;
}
body #fixedElement {
    position:fixed !important;
    position: absolute; /*ie6 and above*/
    bottom: 0;
}

tested in ie6, ie7, ie8, ff2, ff3, safari3

Next Post

Previous Post

© 2024 Alex Barber | Digital Artist