title: Keeping elements position while resizing browser windows/ resolution
body: <p>Basically i'm using a background(body) and i need certain elements to be positioned exactly where i want them to be(i used top/left %) (usually images and tables, but in this example i have used simple div elements); after resizing the browser window/ changing the resolution the elements are of course moving  accordingly to the new size, hence they change position. I tried using a div parent to solve that, but i failed.
  HTML &amp; CSS :</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>body
  {
  background:black;
  }
  #content
  {
      background:blue;
      top:1%;
      position:relative;
      height:900px;
      max-width:1600px;
      margin-left:auto;
      margin-right:auto;
  }
  
  .a
  {
  position:absolute;
  background:yellow;
  height:600px;
  width:800px;
  top:15%;
  left:5%;
  }
  
  .b
  {
  background:red;
  height:100px;
  width:100px;
  position:absolute;
  top:50%;
  left:80%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="content"&gt;
  
  &lt;div class="a"&gt;
  Box1
  &lt;/div&gt;
  
  &lt;div class="b"&gt;
  Box2
  &lt;/div&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>