tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

sticky-content-ref.html (453B)


      1 <!DOCTYPE html>
      2 <body>
      3 <style>
      4 body {
      5  margin: 0;
      6 }
      7 
      8 .fieldset div {
      9  height:1000px;
     10 }
     11 
     12 span {
     13  background: lime;
     14  display: block;
     15  height: 40px;
     16  position: absolute;
     17  top: 4px;
     18  left: 0px;
     19  width: 40px;
     20 }
     21 
     22 .fieldset {
     23  border: none;
     24  height: 400px;
     25  margin: 0;
     26  overflow: scroll;
     27  padding: 0;
     28 }
     29 </style>
     30 <div class="fieldset"><div><span></span></div></div>
     31 <script>
     32 document.querySelector('.fieldset').scrollTop = 1000;
     33 </script>
     34 </body>