Advertisement
Guest User

Untitled

a guest
May 15th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.42 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang=en>
  3.     <head>
  4.         <meta charset=utf-8>
  5.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.         <style>
  7.             html, body {
  8.                 margin: 0;
  9.                 padding: 0;
  10.                 height: 100vh;
  11.                 width: 100vw;
  12.                 font-size: 16px;
  13.                 /*-webkit-tap-highlight-color: rgba(0,0,0,0);
  14.                 -webkit-tap-highlight-color: transparent;*/
  15.             }            
  16.             .page {
  17.                 width: 100vw;
  18.                 height: 100vh;
  19.                 box-sizing: border-box;
  20.                 padding: 20px;
  21.             }
  22.             .scroller {
  23.                 width: 100%;
  24.                 height: 100%;
  25.                 box-sizing: border-box;
  26.                 border: 2px solid rgba(255, 0, 0, 0.5);
  27.                 overflow-y: scroll;
  28.             }
  29.             .item {
  30.                 width: 100%;
  31.                 height: 250px;
  32.                 border: 2px solid lightgray;
  33.                 box-sizing: border-box;
  34.             }
  35.             /*.scroller::-webkit-scrollbar-track,
  36.             .scroller::-moz-scrollbar-track,
  37.             .scroller::-o-scrollbar-track
  38.             {
  39.                 box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  40.                 -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  41.                 -moz-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  42.                 -o-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  43.                 border-radius: 10px;
  44.                 background-color: #F5F5F5;
  45.             }            
  46.             ::-webkit-scrollbar-track,
  47.             ::-moz-scrollbar-track,
  48.             ::-o-scrollbar-track
  49.             {
  50.                 box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  51.                 -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  52.                 -moz-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  53.                 -o-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  54.                 border-radius: 10px;
  55.                 background-color: #F5F5F5;
  56.             }*/
  57.         </style>
  58.     </head>
  59.     <body>
  60.         <div class="page">
  61.             <div class="scroller">
  62.                 <div class="item"></div>
  63.                 <div class="item"></div>
  64.                 <div class="item"></div>
  65.                 <div class="item"></div>
  66.                 <div class="item"></div>
  67.             </div>
  68.         </div>
  69.     </body>
  70. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement