title: How to dynamically scale the screen where the style 'position: absolute' applied components is placed based on resolution
body: <p>How can I scale the screen <strong>dynamically</strong> based on resolution when the code looks like this?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.drawing-board {
    width: 25%;
    height: 25%;
    background-color: black;
    position: relative;
  }
  
  .drawing-board .box-1 {
    width: 20px;
    height: 20px;
    background-color: yellow;
    position: absolute;
    left: 90px;
    top: 90px;
  }
  
  .drawing-board .box-2 {
    width: 20px;
    height: 20px;
    background-color: lime;
    position: absolute;
    left: 30px;
    top: 30px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="drawing-board"&gt;
    &lt;div class="box-1"&gt;&lt;/div&gt;
    &lt;div class="box-2"&gt;&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Is there any simple examples for this case?</p>