title: How to center focused element?
body: <p>The code below focuses on second element using javascript however the focused element sticks to bottom of page. I want to have focused element in the center of page how to do that?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function(){
      $("#two").focus();
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body{color:white;}
  #fis{height:600px;width: 60px;background-color:red;}
  #two{height:50px;width: 60px;background-color:green;}
  #thr{height:600px;width: 60px;background-color:blue;}</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;div id="fis"&gt;hello
      &lt;/div&gt;
      &lt;div id='two' tabindex='1'&gt;mr
      &lt;/div&gt;
      &lt;div id='thr'&gt;john
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>