title: Scale div position with viewport
body: <p>Im working on a spot the difference game.</p>
  
  <p>So far I have an image with a difference shown by a red circle for testing.</p>
  
  <p>I also have a dot (a button currently blue for testing but transparent for final) which will be what the user clicks on to get the difference.</p>
  
  <p>I need help getting the dot to stay within the red circle when the browser window is resized.</p>
  
  <p>Here is a link to my <a href="https://jsfiddle.net/89hdz3mn/" rel="nofollow noreferrer">JSFIDDLE</a> and the code is below</p>
  
  <p>CSS:</p>
  
  <pre><code>.position001{position:relative}.block001{position:absolute;top:50px;left:673px;background-color:#7fffd4;border-radius:50%}.button001{background-color:transparent;border:1px solid transparent;width:45px;height:42px}.hide001{outline:0;border:none}
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class="position001"&gt;
      &lt;div id="board001"&gt;
          &lt;button class="hide001" onclick="incorrect001()"&gt;
              &lt;img src="https://stefan.admark.co.uk/jimny.jpg" width="90%" /&gt;
          &lt;/button&gt;
          &lt;div class="block001"&gt;
              &lt;div id="disappear001"&gt;
                  &lt;button class="button001" onclick="correct001()"&gt;&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>