Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Emulating Position Fixed
/* https://coderwall.com/p/8rz_7g*/
html {
position: absolute;
height: 100%;
overflow: hidden;
}
body {
height: 100%;
overflow: auto;
}
.fixed {
position: absolute;
}
.scroll {
overflow: scroll;
-webkit-overflow-scrolling: touch;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.