JQuery function not working as expected
- by Mike
I've written a little function to position a logo midway between the left hand side of the browser window and the (centered) navigation menu. The menu items are populated from a database, with the first item given the id item0.
function positionLogo(){
var $menuleft=0;
var $element=document.getElementById('item0');
if…