Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

sticky nav - fixed position is not working

$
0
0

Hi,

 

I have a rectangle with fixed position, top of 80px, and right of 0px:

var tabs = sym.$("tabs");

tabs.css({"position":"fixed","top":"80px", "right":"0px"});

 

Inspecting the element in the browser (safari) confirms that the position is fixed.  (Look at the blue rectangle on the right.)  And it does stick to the right side if I change the width of the browser.

 

Screen Shot 2014-04-25 at 3.01.15 PM.png

 

However, if I scroll up, the blue box scrolls up and off the stage:

Screen Shot 2014-04-25 at 3.02.18 PM.png

Even though the computed style shows a top of 80px.

 

Any help would be most appreciated.

 

Thanks

-Sherry


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>