I want to move my div down if my window scroll down and move up on window scrolls up? How to implement?
+4
A:
<div style="position:fixed;">
<p>Hello World</p>
</div>
position:fixed
Generates an absolutely positioned element, positioned relative to the browser window. The element's position is specified with the "left", "top", "right", and "bottom" properties.
Jonathan Sampson
2009-07-21 18:33:53
Note that IE6 does not support position fixed.
Emily
2009-07-21 18:37:42
Note also IE6 does not support fun.
Jonathan Sampson
2009-07-21 18:38:02
Be aware that there are compatibility issues with position: fixed in "certain" browsers. See here for some work-arounds: http://tagsoup.com/cookbook/css/fixed/
AaronSieb
2009-07-21 18:38:19