Guest User

Untitled

a guest
Nov 19th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. html {
  2. overflow: hidden;
  3. height: 100%;
  4. }
  5.  
  6. body {
  7. height: 100%;
  8. overflow: auto;
  9. }
  10.  
  11. html, body {
  12. width: 100%;
  13. height: 100%;
  14. overflow: hidden;
  15. }
  16.  
  17. body > div {
  18. height: 100%;
  19. overflow: scroll;
  20. -webkit-overflow-scrolling: touch;
  21. }
  22.  
  23. body {
  24. height: 100vh;
  25. background-size: cover;
  26. overflow: hidden;
  27. }
  28.  
  29. document.body.addEventListener('touchmove', function(event) {
  30. console.log(event.source);
  31. //if (event.source == document.body)
  32. event.preventDefault();
  33. }, false);
  34.  
  35. body {
  36. overflow: hidden;
  37. }
  38.  
  39. // position is important
  40. #element {
  41. position: absolute;
  42. top: 0;
  43. right: 0;
  44. bottom: 0;
  45. left: 0;
  46. overflow: auto;
  47. }
  48.  
  49. html {
  50. overflow: hidden;
  51. }
  52.  
  53. .div{
  54. width:1024px;
  55. margin:0px auto; /* this aligns the 'div' to ALWAYS be in the center */
  56. }
Add Comment
Please, Sign In to add comment