title: Pass jQuery variable to CSS
body: <p>I'm trying to dynamically calculate the <code>min-width</code> of <code>body</code> based on the number of <code>div.columns</code> that exist on the page, plus a padding of 180px. This is the code I'm using:</p>
  
  <pre><code>function countColumns() {
      var columns =  $('.column').size(); 
      document.write(columns)
  }
  
  $('body').css('min-width', (parseInt(columns) * 120) + 180 + 'px') );
  </code></pre>
  
  <p>Any clue as to why its not working?</p>