Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- html {
- overflow: hidden;
- height: 100%;
- }
- body {
- height: 100%;
- overflow: auto;
- }
- html, body {
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- body > div {
- height: 100%;
- overflow: scroll;
- -webkit-overflow-scrolling: touch;
- }
- body {
- height: 100vh;
- background-size: cover;
- overflow: hidden;
- }
- document.body.addEventListener('touchmove', function(event) {
- console.log(event.source);
- //if (event.source == document.body)
- event.preventDefault();
- }, false);
- body {
- overflow: hidden;
- }
- // position is important
- #element {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- overflow: auto;
- }
- html {
- overflow: hidden;
- }
- .div{
- width:1024px;
- margin:0px auto; /* this aligns the 'div' to ALWAYS be in the center */
- }
Add Comment
Please, Sign In to add comment