Skip to content

Instantly share code, notes, and snippets.

@imranariffin
Created June 12, 2018 14:51
Show Gist options
  • Select an option

  • Save imranariffin/184d56fb559586c7da9472bfece4ef16 to your computer and use it in GitHub Desktop.

Select an option

Save imranariffin/184d56fb559586c7da9472bfece4ef16 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/gexafax
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.scroll-wrapper {
/* -webkit-overflow-scrolling: touch; */
/* overflow-y: scroll; */
/* important: dimensions or positioning here! */
width: 500px;
height: 500px;
}
.scroll-wrapper iframe {
/* nada! */
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div class="scroll-wrapper">
<iframe src="https://davidwalsh.name/scroll-iframes-ios"></iframe>
</div>
<script id="jsbin-source-css" type="text/css">.scroll-wrapper {
/* -webkit-overflow-scrolling: touch; */
/* overflow-y: scroll; */
/* important: dimensions or positioning here! */
width: 500px;
height: 500px;
}
.scroll-wrapper iframe {
/* nada! */
height: 100%;
width: 100%;
}</script>
</body>
</html>
.scroll-wrapper {
/* -webkit-overflow-scrolling: touch; */
/* overflow-y: scroll; */
/* important: dimensions or positioning here! */
width: 500px;
height: 500px;
}
.scroll-wrapper iframe {
/* nada! */
height: 100%;
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment