jaymc Posted March 24, 2008 Share Posted March 24, 2008 I know how to get the scroll position, but how to get the top viewable px if the scroll bar has been moved I cant explain, so I have attached an image to make it easier http://www.jmchost.co.uk/uploader/uploads/24-Mar-3-45_position.jpg So lets say I wanted to float a div round about where it says MICROSOFT SQL on the left hand side Thanks! Link to comment https://forums.phpfreaks.com/topic/97655-get-scroll-position-extended/ Share on other sites More sharing options...
rhodesa Posted March 24, 2008 Share Posted March 24, 2008 Have you looked into just using style="position:fixed;" ? http://www.w3schools.com/css/pr_class_position.asp Link to comment https://forums.phpfreaks.com/topic/97655-get-scroll-position-extended/#findComment-499677 Share on other sites More sharing options...
jaymc Posted March 24, 2008 Author Share Posted March 24, 2008 Perfect, didnt know it could be done with css Thanks Link to comment https://forums.phpfreaks.com/topic/97655-get-scroll-position-extended/#findComment-499757 Share on other sites More sharing options...
rhodesa Posted March 24, 2008 Share Posted March 24, 2008 You can basically float a DIV on the screen (like absolute position) except it doesn't move when you scroll the bar. Link to comment https://forums.phpfreaks.com/topic/97655-get-scroll-position-extended/#findComment-499763 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.