Team:Minnesota/Test

From 2012.igem.org

(Difference between revisions)
m
m
Line 13: Line 13:
   // jQuery functions go here...
   // jQuery functions go here...
-
 
+
//vertical autocenter
$(window).resize(function(){
$(window).resize(function(){
   $('#ContentAll').css({
   $('#ContentAll').css({
     position:'absolute',
     position:'absolute',
-
    left: ($(window).width() - $('#ContentAll').outerWidth())/2,
 
     top: ($(window).height() - $('#ContentAll').outerHeight())/2
     top: ($(window).height() - $('#ContentAll').outerHeight())/2
   });
   });
-
  alert($(window).width());
 
-
  alert($(window).height());
 
});
});
-
 
-
// To initially run the function:
 
$(window).resize();
$(window).resize();
 +
//end vertial autocenter
Line 45: Line 41:
width:1000px;
width:1000px;
height:700px;
height:700px;
-
/*autocenter
+
/*autocenter horizontally*/
left:50%;
left:50%;
margin-left:-500px;
margin-left:-500px;
-
top:50%;
+
 
-
*/
+
background-color:#E17E7E;
background-color:#E17E7E;
}
}

Revision as of 03:07, 22 August 2012

Team:Minnesota - Main Style Template Team:Minnesota