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! Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.