title: How can I wrap divs?
body: <p>Basically, I want the inner divs outside the outer div to wrap according to the width of the outer div, which in turn expands and contracts according to the width of the browser window, like so:</p>
  
  <pre><code>.---------------------.
  |                     | &lt;-- Browser Window
  | .-----------------. |
  | |  ,-,  ,-,  ,-,  | |
  | |  |X|  |X|  |X|  | |
  | |  `-`  `-`  `-`  | |
  | |                 | |
  | |  ,-,  ,-,  ,-,  | |
  | |  |X|  |X|  |X|  | |
  | |  `-`  `-`  `-`  | |
  | `-----------------` |
  |                     |
  `---------------------`
  
  .-------------------------------.
  |                               | &lt;-- Browser Window enlarged
  | .---------------------------. |
  | |  ,-,  ,-,  ,-,  ,-,  ,-,  | |
  | |  |X|  |X|  |X|  |X|  |X| &lt;----- Inner divs wrap around accordingly, as if
  | |  `-`  `-`  `-`  `-`  `-`  | |     they are text
  | |                           | |
  | |  ,-,                      | |
  | |  |X|                      | |
  | |  `-`                      | |
  | `---------------------------` |
  |                               |
  `-------------------------------`
  </code></pre>
  
  <p>What would be the best (as in simplest in terms of developer time) way to make this happen?</p>