Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
102
rated 0 times [  104] [ 2]  / answers: 1 / hits: 71338  / 13 Years ago, mon, august 8, 2011, 12:00:00

I saw recently a new interesting feature in the new gmail and also in the HTML5 bing preview that fixes a navigation bar to the top of the browser window when scrolling. The bar may start 100px down the page but when you scroll and it reaches the top of the browser window, it fixes there until you scroll back up above where it was originally positioned.



My question is; how can I do this effect or do something similar to this effect?



I hope you can understand my question and what I'm trying to describe.


More From » jquery

 Answers
-3

If you want the element to start further down on the page, then stay fixed on the top as you scroll down, this may be a good start:



http://jsfiddle.net/cc48t/


[#90746] Saturday, August 6, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
joanneamiyaa

Total Points: 532
Total Questions: 127
Total Answers: 98

Location: Guam
Member since Tue, Nov 3, 2020
4 Years ago
joanneamiyaa questions
Thu, Apr 30, 20, 00:00, 4 Years ago
Thu, Feb 20, 20, 00:00, 4 Years ago
Mon, Oct 14, 19, 00:00, 5 Years ago
;