title: CSS responsive margin top
body: <p>I want to position a <code>&lt;div class="container"&gt;&lt;/div&gt;</code> in the middle of the screen in such a way so that it's responsive to any screen size. The red marked area on the screenshot should always appear in the middle of the screen.</p>
  
  <p>How to position it? Currently I'm using <code>margin-top:85px</code> when I squeeze the browser, the distance between the red marked area and the navbar should decrease as well.</p>
  
  <p><a href="https://i.stack.imgur.com/ZzyrW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZzyrW.jpg" alt="enter image description here"></a></p>