Team:KULeuven/Tools/Navigation Bar
From 2008.igem.org
(Difference between revisions)
m |
m |
||
Line 52: | Line 52: | ||
function ddalign() { | function ddalign() { | ||
- | var | + | var _windowWidth = $(window).width(); |
- | $('div#ddnav').css('left', | + | var _leftOffset = (_windowWidth - 965)/2; |
+ | $('div#ddnav').css('left',_leftOffset); | ||
} | } | ||
Revision as of 09:09, 10 September 2008