title: How to set min-height and max-height equal to window Height
body: <p>I able to set a div height as min-window height but can't set max-height as windowHeight similar way. Here is the code </p>
  
  <pre><code> $(document).ready(function() {   
       function setHeight() {
           windowHeight = $(window).innerHeight();
           $('.sidebar').css('min-height', windowHeight);   
       };   
       setHeight();
       $(window).resize(function() {
           setHeight();   
       }); 
   });
  </code></pre>