title: Width of Browser minus 25%
body: <p>So I have been trying to figure this out on my own for a little while. Figured I would ask here since I always seem to get some great responses.</p>
  
  <p>So.  I want to know the dimensions of the browser window minus 25%.  I have a two column layout and i want to use tim thumb or regular attributes (just to test). to make sure that I get the correct height and width of the area I want to show on an image. </p>
  
  <p>25% | rest of the page (this is where the image is).  the height I have no problem since I can do .height() - 240 (which I know because of my CSS. my question is the width.</p>
  
  <p>Here is what I have so far, but cant seem to make it work.</p>
  
  <pre><code>var bg_width    = $(window).width() * .025;
  var bg_height   = $(window).height() - 240;
  $(".backgrounds img").each(function(bg_width,bg_height){
      $(this).attr('width',bg_width);
      $(this).attr('height',' + bg_height + ');
  });
  </code></pre>
  
  <p>Anyone see anything wrong with this or why it doesnt work?</p>