Team:UCLondon/Templates/Team-Style

From 2012e.igem.org

(Difference between revisions)
Line 101: Line 101:
     'left':  '50%',
     'left':  '50%',
     'margin-left': 0 - (this.width() / 2),
     'margin-left': 0 - (this.width() / 2),
-
     'top': (w.height()/2 - this.height()/2) + w.scrollTop()
+
     'top': ((w.height() - $(this).height()) / 2) - (($(this).pixels('padding-top') + $(this).pixels('padding-bottom')) / 2) + w.scrollTop() + "px")
   });
   });
   return this;
   return this;

Revision as of 06:32, 17 September 2012