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', | ||
- | |||
top: ($(window).height() - $('#ContentAll').outerHeight())/2 | top: ($(window).height() - $('#ContentAll').outerHeight())/2 | ||
}); | }); | ||
- | |||
- | |||
}); | }); | ||
- | |||
- | |||
$(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; | ||
- | + | ||
- | + | ||
background-color:#E17E7E; | background-color:#E17E7E; | ||
} | } |
Revision as of 03:07, 22 August 2012