Skip to content

‘position:fixed’ mit Internet Explorer

Die CSS-Eigenschaft position:fixed hat normalerweise beim Internet Explorer keine Auswirkung.
Mit CSS wie

position:absolute;
left:10px;
top:expression(body.scrollTop + 50 + "px");

kriegt man den IE aber doch dazu sich fast so zu verhalten wie anständige Browser.

Gefunden auf svendtofte.com.

Kondensat

Das Interessante an obigem Code ist die kaum bekannte expression()-Eigenschaft. Eine von Microsofts dynamic properites.

Toll, was Microsoft so alles kann…

{ 1 } Comments

  1. YEAH!!! | 2009/2/27 at 12:23 | Permalink

    YEAH! GENAU DAS HABE ICH WÄHREND TAGEN GESUCHT!
    DANKE DANKE DANKE!!!!!!!!!!!!

Post a Comment

Your email is never published nor shared. Required fields are marked *