title: How to manage two divs with absolute position
body: <p>I am trying to solve task, where is problem with div width. The problem is that I need to have set position to absolute for both divs (See picture - div1 and div2).</p>
  <p><img src="https://i.stack.imgur.com/wzCjI.png" alt="image of divs" /></p>
  <p>Div1 has property</p>
  <blockquote>
  <p>min-width:280px</p>
  </blockquote>
  <p>And the other div should have width of the rest page.</p>
  <p>Problem is how to handle this min-width argument if the width of first div will be more than <code>280px</code>.</p>
  <p>Is there any solution, how to set div2 dynamically too without using JS?
  Positions of both divs can not be changed, it must stay set on absolute.</p>