title: Setting min-width - jQuery
body: <p>This works great:</p>
  
  <pre><code>$(document).ready(function() {
      var previewwidth = ($(window).width() - ( $('.aside').width() + $('.results').width() + 110) ) ;
      $(".result-preview").width(previewwidth);
      $("footer").text(previewwidth);
  
  });
  
  
  $(window).resize(function() {
      var previewwidth = ($(window).width() - ( $('.aside').width() + $('.results').width() + 110) ) ;
      $(".result-preview").width(previewwidth);
      $("footer").text(previewwidth);
  });
  </code></pre>
  
  <p>but I'm not sure how to set min and max width, so min-width to 338px and max-width to 500px.</p>
  
  <p>thanks!</p>