title: How to divide width of parent div between child divs(one auto size and one fixed)?
body: <p>I have a div which contains two child divs.</p>
  
  <pre><code>&lt;div id="parent"&gt;
      &lt;div id="child1"&gt;&lt;/div&gt;
      &lt;div id="child2"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now the constraints are that </p>
  
  <ol>
  <li>parent div can take any width</li>
  <li>child1+child2 width equal to width of parent</li>
  <li>child1 should maintain aspect ratio (width/height) 1.6</li>
  <li>child2 will always have fixed width say 100px and height equal to child1</li>
  <li>not using html5 and css3</li>
  </ol>