Created
June 12, 2016 08:47
-
-
Save anonymous/938fc5f84222d8ed06cdcb7f6092da8d to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/vofubidaxe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
margin: 0 | |
} | |
nav { | |
position: fixed; | |
border: 1px solid; | |
width: 100%; | |
text-align: center; | |
} | |
.parent { | |
position: relative; | |
max-height: 100vh; | |
overflow-x: hidden; | |
overflow-y: scroll; | |
-webkit-overflow-scrolling: touch; | |
} | |
img { | |
display: block | |
} | |
</style> | |
</head> | |
<body> | |
<div class="parent"> | |
<nav>Menu</nav | |
<div> | |
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Grosser_Panda.JPG/640px-Grosser_Panda.JPG"> | |
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/67/Giant_Pandas_having_a_snack.jpg/640px-Giant_Pandas_having_a_snack.jpg"> | |
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Yuan_Zi_-_panda.jpg/319px-Yuan_Zi_-_panda.jpg"> | |
</div> | |
</div> | |
<script id="jsbin-source-css" type="text/css">body { | |
margin: 0 | |
} | |
nav { | |
position: fixed; | |
border: 1px solid; | |
width: 100%; | |
text-align: center; | |
} | |
.parent { | |
position: relative; | |
max-height: 100vh; | |
overflow-x: hidden; | |
overflow-y: scroll; | |
-webkit-overflow-scrolling: touch; | |
} | |
img { | |
display: block | |
}</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 0 | |
} | |
nav { | |
position: fixed; | |
border: 1px solid; | |
width: 100%; | |
text-align: center; | |
} | |
.parent { | |
position: relative; | |
max-height: 100vh; | |
overflow-x: hidden; | |
overflow-y: scroll; | |
-webkit-overflow-scrolling: touch; | |
} | |
img { | |
display: block | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment