Team:KULeuven/Tools/Navigation Bar

From 2008.igem.org

(Difference between revisions)
m
m
Line 52: Line 52:
function ddalign() {
function ddalign() {
-
var leftOffset = (window.innerWidth - 965)/2;
+
var _windowWidth = $(window).width();
-
$('div#ddnav').css('left',leftOffset);
+
var _leftOffset = (_windowWidth - 965)/2;
 +
$('div#ddnav').css('left',_leftOffset);
}
}

Revision as of 09:09, 10 September 2008