Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
177
rated 0 times [  184] [ 7]  / answers: 1 / hits: 192059  / 15 Years ago, wed, october 28, 2009, 12:00:00

How can I make a div element move up and down the page when the user is scrolling the page? (where that element is always visible)


More From » jquery

 Answers
15

You want to apply the fixed property to the position style of the element.



position: fixed;


What browser are you working with? Not all browsers support the fixed property. Read more about who supports it, who doesn't and some work around here



http://webreflection.blogspot.com/2009/09/css-position-fixed-solution.html


[#98429] Friday, October 23, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
emerymariamm

Total Points: 276
Total Questions: 97
Total Answers: 99

Location: Comoros
Member since Sun, Dec 13, 2020
4 Years ago
;