title: rotate div based on browser window size
body: <p>Would it be possible for me to create a glass effect using the method I made below and apply it to a containing div that's width and height are 100%? This would mean that no matter how you resize the window, the corners of the glass div always move with the window.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  
  &lt;title&gt;Untitled&lt;/title&gt;
  
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
  
  &lt;style type="text/css" media="screen"&gt;
  
  body {
      margin: 0;
      padding: 0;
      background: #eee;
  }
  
  #container {
      width: 500px;
      height: 500px;
      position: absolute;
      top: 200px;
      margin-left: -250px;
      left: 50%;
      background: #333;
  }
  
  #container .glass {
      position: absolute;
      width: 710px;
      height: 710px;
      top: -355px;
      left: -355px;
      background: #fff;
      opacity: 0.1;
      -webkit-transform:rotate(45deg);
  }
  
  
  &lt;/style&gt;
  
  &lt;/head&gt;
  &lt;body&gt;  
  &lt;div id="container"&gt;
      &lt;div class="glass"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>