title: Resize web page to fit screen
body: <p>I have a website which I want to follow the resizing of the browser window so that it always fits.
  I tried using css transform scale property with a ratio given by current window width divided by full-screen window width.
  It does re-scale but there must be something wrong with it because it leaves white blocks to the left and the right of the content (so it shrinks the site too much and then centers in in the window)
  Here is the javascript code:</p>
  
  <pre><code>$(window).resize(function(){
             var ratio = $(window).width()/1340;
                  $('body').css('transform','scale('+(ratio)+')');
                  $('body').css('-ms-transform','scale('+(ratio)+')');
                  $('body').css('-moz-transform','scale('+(ratio)+')');
                  $('body').css('-webkit-transform','scale('+(ratio)+')');
     });
  </code></pre>
  
  <p>Is there a better way to make the page fit the window (or make the scaling scale properly)?</p>