title: Vertical Align prettyPhoto Window to Center Of Screen Trouble
body: <p>I have a problem with aligning PrettyPhoto window to center of screen vertically in Chrome, Mozilla or Safari. It is fine in IE. I'll be pleased if you help why it has happened and how I can solve it.</p>
  
  <p>I checked that the reason of the trouble is calculated top value of loaded prettyPhoto window.</p>
  
  <p>Related Line of Source Code in Chrome, Mozilla, Safari:</p>
  
  <pre><code>&lt;div class="pp_pic_holder light_rounded" style="top: 1236.5px; left: 542.5px; display: block; width: 180px;"&gt;
  </code></pre>
  
  <p>Related Line of Source Code in IE:</p>
  
  <pre><code>&lt;div class="pp_pic_holder light_rounded" style="left: 542px; top: 199.5px; width: 180px; display: block;"&gt;
  </code></pre>
  
  <p>I also added the source code parts below that can help you to troubleshoot the problem.</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="tr"&gt;
  &lt;head&gt;
  &lt;link rel="stylesheet" href="../css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" /&gt;
  &lt;link href="../css/tema.css" rel="stylesheet" type="text/css"&gt;
  
  &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"&gt;&lt;/script&gt;
  &lt;script src="../js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="urundetayresim"&gt;&lt;ul class="gallery"&gt;
  &lt;li&gt;
  &lt;a href="images/urunler/bu353_1s4.jpg" rel="prettyPhoto[gallery1]"&gt;&lt;img src="images/urunler/bu353_1s4.jpg" alt="Bu-353 S4 Usb GPS Alıcısı Sirf Star 4 Chipset" width="240" height="240" /&gt;&lt;/a&gt;
  &lt;/li&gt;&lt;li&gt;
  &lt;a href="images/urunler/bu353_2.jpg" rel="prettyPhoto[gallery1]"&gt;&lt;img src="images/urunler/bu353_2.jpg" alt="Bu-353 S4 Usb GPS Alıcısı Sirf Star 4 Chipset" width="240" height="195" /&gt;&lt;/a&gt;
  &lt;/li&gt;&lt;li&gt;
  &lt;a href="images/urunler/bu353_3.jpg" rel="prettyPhoto[gallery1]"&gt;&lt;img src="images/urunler/bu353_3.jpg" alt="Bu-353 S4 Usb GPS Alıcısı Sirf Star 4 Chipset" width="240" height="234,146341463" /&gt;&lt;/a&gt;
  &lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
  
  &lt;script type="text/javascript" charset="utf-8"&gt;
  jQuery(document).ready(function() {
      jQuery('#urundetaydetaybilgi2').hide();
      //jQuery(".fancybox").fancybox();
      jQuery(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({
      allow_resize: true, /* Resize the photos bigger than viewport. true/false */
      default_width: 500,
      default_height: 344,
      theme: 'light_rounded',
      deeplinking: false  
      });
  });
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>