title: CSS make sidebar fixed when scrolling BUT scrollable when hover on top
body: <p>I found many explanations online about how to make a <strong>sidebar fixed</strong>, but I'm having an issue when the content of the sidebar is longer than the screen can display.</p>
  
  <p>Is there a way to make the sidebar <strong>"fixed" yet "scrollable"</strong> if you hover on top? </p>
  
  <p>EDIT: I'm adding the jfiddle as an example. Thx</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html,body{height:100%}
  .wrap{width:100%;height:100%;position:relative}
  .head{height:100px;position:fixed;top:0;left:0;width:100%}
  .bodywrap{margin-top:100px;}
  .right{width:200px;top: 100px; bottom: 0px;position: fixed;}
  .center,.right,.bodywrap{height:100%}
  .right{right:0}
  .right{background-color:#ccc}
  .head{background-color:#777}</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class='wrap'&gt;
      &lt;div class='head'&gt;Header&lt;/div&gt;
      &lt;div class='bodywrap'&gt;
          &lt;div class='right'&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;right&lt;br&gt;&lt;/div&gt;
          &lt;div class='center'&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt;content center div scolls&lt;br&gt; &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>