0 Replies Latest reply on Jan 17, 2015 4:20 PM by jroguex

    fix item vertically while center horizontal

    jroguex

      Hello

       

      How can I fix an object or symbol so that it remains centre horizontally but stays fixed vertically, even when scrolling? Sort of thing you'd use for a entered Navigation Bar.

       

      I have these:

       

      sym.$("NavigationBar").css("position","fixed");

      sym.$("NavigationBar").addClass('center');

      $("#Stage").css({"margin":"0 auto"})

      var lp=sym.$("NavigationBar").width();

      sym.$(".center").css({'position':'absolute', 'left':'50%',"margin-left":-lp/2});

       

      Please help.

      Thanks

       

      Justin