Team:KULeuven/Tools/Navigation Bar

From 2008.igem.org

(Difference between revisions)
m
m
Line 54: Line 54:
var _windowWidth = $(window).width();
var _windowWidth = $(window).width();
var _leftOffset = (_windowWidth - 965)/2;
var _leftOffset = (_windowWidth - 965)/2;
-
if(_leftOffset <= 0) {_leftOffset = 0;}
+
if(_leftOffset <= 0) {_leftOffset = '5px';}
$('div#ddnav').css('left',_leftOffset);
$('div#ddnav').css('left',_leftOffset);

Revision as of 09:16, 10 September 2008