title: Vertical align using jquery for all devices?
body: <p>I found as problematic thing to align vertically some elements on page, without changing some others elements layouts.  </p>
  
  <p>The problem is magnified on mobile devices. So many screen sizes, resolutions, portrait, landscape...</p>
  
  <pre><code>var x=window.innerHeight - $('#myDiv').height();
      $('#myDiv').css ('margin-top', x/2);
  </code></pre>
  
  <p>This should be ok for all devices, mobile and desktop. Do you see any downside of these approach?  </p>
  
  <p>As I understand, all devices today support JavaScript. But, is it possible that some device supports JS but doesn't support jQuery ?</p>