title: How to force parent div to expand by child div width/padding/margin/box?
body: <p>I want to expand div parent with child div but I don't know if that's possible and how to do it.</p>
  
  <p><img src="https://i.stack.imgur.com/f6Ujn.png" alt="enter image description here"></p>
  
  <p>I prepare a <a href="http://jsfiddle.net/CrfaE/" rel="noreferrer">fiddle</a> and included some code.</p>
  
  <p><strong>CSS</strong></p>
  
  <pre><code>body {
      background: gray;
  }
  div.page {
      color: white;
      background: black;
      max-width: 72em;
      margin: auto;
      padding: 1em;
  }
  div.one {
      background-color: red;
      width: 40%;
  }
  div.two {
      background-color: green;
      width: 120%;
  }
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;body&gt;
      &lt;div class="page"&gt;
          &lt;div class="one"&gt;One&lt;/div&gt;
          &lt;div class="two"&gt;Two&lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>