i have got a question. Is it possible to center an element relative to the screen not to the document. (The document is smaller than the screen) So my actual problem is to detect if the offset is above or under the document. This returns the offset:
var $offset = screen.height - document.height
But I cant detect if it is at the top of the screen or at the bottom :(
Thx