Skip to content

Instantly share code, notes, and snippets.

@leodutra
Last active December 29, 2015 17:39
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 leodutra/7705798 to your computer and use it in GitHub Desktop.
Save leodutra/7705798 to your computer and use it in GitHub Desktop.
Overflow fix.
/* http://css-tricks.com/the-css-overflow-property/ */
.scroll-x {
overflow-x: auto;
-ms-overflow-x: auto;
}
.scroll-y {
overflow-y: auto;
-ms-overflow-y: auto;
}
.no-scroll-x {
overflow-x: hidden;
-ms-overflow-x: hidden;
}
.no-scroll-y {
overflow-y: hidden;
-ms-overflow-y: hidden;
}
.scroll-x, .scroll-y, .no-scroll-x, .no-scroll-y {
position: relative\9; /*IE 8- FIX*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment