title: Disable everything in background while a popup is open
body: <p>I am developing a HTML, JQuery and CSS-based webpage on which I want to open popup using simple div tag. I want to disable everything in the background while a popup is open. That means while the popup div is visible to the user, he or she should not be able to click anything else on the webpage (anything behind or in the background of popup).</p>
  <p>Following is how I am trying to do it. I open a popup by clicking on an HTML button (#but1) and close it using the button (#but2) by applying the following jquery-</p>
  <pre><code>$(document).ready(function(){
      $(&quot;#but1&quot;).click(function(){
              $(&quot;#popdiv&quot;).fadeTo(200,1);           
          });
      $(&quot;#but2&quot;).click(function(){
              $(&quot;#popdiv&quot;).fadeOut(200);              
          });
  });
  </code></pre>
  <p>The CSS for the popup div is -</p>
  <pre><code>#popdiv
  {
      height:300px;
      width:420px;
      background-color:#97ceaa;
      position:fixed;
      top:200px;
      left:250px;
      display:none;
  }
  </code></pre>
  <p>I want to disable the background after my popup div appears on the webpage. After my popup appears the mouse effects should be disabled, and the user should not be able to click/hover anything else on the webpage (in the background of popup). User will need to close the popup to access the webpage. How can I achieve this? Is it possible to do this using only CSS?</p>