I want to implement the floating window in the html which it has scroll down when i am scrolling the page down
+3
A:
Give your window element position: fixed;
in the CSS. Position it with left
, right
, top
, and/or bottom
. See CSS2 positioning schemes on W3.org.
strager
2010-08-20 06:19:04
Also have a look at the (slightly) more friendly reference on Sitepoint.com: http://reference.sitepoint.com/css/position
Yi Jiang
2010-08-20 06:28:29
A:
SteveCav
2010-08-20 06:19:32
Since it isn't 'in the html' nor does it 'scroll down when the page scrolls' - no.
David Dorward
2010-08-20 06:22:00