title: Scale/zoom a DOM element and the space it occupies using CSS3 transform scale()
body: <p>In the middle of my page I have a div element with some content in it (other divs, images, whatever).</p>
  
  <pre><code>&lt;div&gt;
      before
  &lt;/div&gt;
  &lt;div id="content-to-scale"&gt;
      &lt;div&gt;something inside&lt;/div&gt;
      &lt;div&gt;another something&lt;/div&gt;
  &lt;/div&gt;
  &lt;div&gt;
      after
  &lt;/div&gt;
  </code></pre>
  
  <p>I would like to scale that element (content-to-scale) and all it's children. Seems like a job for CSS3 transform's scale operation. However, the problem is that this is a transform on the visualization of that element hierarchy only, it doesn't change the amount of space (or position) of the element on the page. In other words, scaling that element larger will cause it to overlap with the "before" and "after" text.</p>
  
  <p>Is there a simple/reliable way to scale not just the visual representation, but also the amount of space occupied?</p>
  
  <p>Extra points for pure CSS without Javascript. Even more points for a solution that does <strong>the right thing</strong> with other transformation functions like rotate and skew. This doesn't have to use CSS3 transform, but it does need to be supported across all recent HTML5 capable browsers.</p>