Skip to content

Instantly share code, notes, and snippets.

@phac
Created January 23, 2009 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phac/50837 to your computer and use it in GitHub Desktop.
Save phac/50837 to your computer and use it in GitHub Desktop.
#fixed {
position: fixed;
left: 100px;
top: 100px;
}
* html #fixed {
position: absolute;
left: expression((documentElement.scrollLeft || document.body.scrollLeft) + 100 + 'px');
top: expression((documentElement.scrollTop || document.body.scrollTop) + 100 + 'px' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment