title: Yet Another Center DIVs inside other DIV question
body: <p>Consider the following HTML and CSS.  The desired result is the two pink boxes are centered within the single green box.  The text is NOT centered.  There is padding on the left and right of each box.  I should be able to have 1 or more of these boxes, up to as many as 8; they should all float to fill in the container div.  I've been bangin my head on this one for weeks now, and nothing I read or try seems to work - margin: auto, display:inline, etc etc.  I added the box-margin div to create the padding when trying to use margin:auto, but it still didn't get the result I was looking for.  Halp?</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;body&gt;
      &lt;div id="page"&gt;
  
          &lt;div id="main"&gt;
  
              &lt;div class="box-group"&gt;
  
                  &lt;div class="box-margin"&gt;
                      &lt;div class="box"&gt;
                          &lt;h2&gt;Data&lt;/h2&gt;
                          &lt;ul&gt;
                              &lt;li&gt;&lt;a href="/URL"&gt;Link&lt;/a&gt;&lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
                  &lt;div class="box-margin"&gt;
                      &lt;div class="box"&gt;
                          &lt;h2&gt;Reports&lt;/h2&gt;
                          &lt;ul&gt;
                              &lt;li&gt;&lt;a href="/URL/"&gt;Link&lt;/a&gt;&lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p><strong>CSS</strong></p>
  
  <pre><code>body
  {
      margin: 0;
      padding: 0;
  }
  #page
  {
      width: 95%;
      min-width:800px;
      border: thin solid red;
  }
  #main
  {
      padding: 30px 30px 15px 30px;
      margin-bottom: 30px;
      min-width: 875px;
      border: thin solid black;
  }
  .box-group
  {
      width: 100%;
      padding: 10px;
      border: thin solid green;
  }
  .box-margin
  {
      margin: auto;
      width: 275px;
      float: left;
      padding: 15px;
  }
  .box
  {
      border: thin ridge pink;
      height: 200px;
      width: 250px;
  }      
  </code></pre>