Team:UCLondon/Templates/Team-Style

From 2012e.igem.org

(Difference between revisions)
Line 99: Line 99:
   this.css({
   this.css({
     'position':'absolute',
     'position':'absolute',
-
     'top':Math.abs(((w.height() - this.height()) / 2) ),
+
     'left': '50%',
-
     'left':Math.abs(((w.width() - this.width()) / 2) )
+
     'margin-left': 0 - (myElement.width() / 2)
   });
   });
   return this;
   return this;

Revision as of 06:24, 17 September 2012