title: Limit width/height jquery container
body: <p>I have the following code does is take the high benchmark of your browser window.</p>
  
  <p>My question is if I can run to condition apartir only true width of the main web container (eg div # container 980px).</p>
  
  <pre><code>$(window).resize(function(){
      var ventana = $(window).height();
      var altura = ventana / 2;
      $("#gallery").css('height', altura);
  });
  </code></pre>
  
  <p>Regards</p>